/* Shared reason-dialog styling for cancellation and request decline. */
#booking-cancel-dialog,
#booking-decline-dialog,
[data-booking-decline-dialog] {
  width: min(520px, calc(100% - 30px));
}

.booking-cancel-card {
  display: grid;
  gap: 18px;
}

.booking-cancel-card .dialog-head {
  margin-bottom: 0;
}

.booking-cancel-copy {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.booking-cancel-reason {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.booking-cancel-reason textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 13px;
  line-height: 1.5;
  font-family: inherit;
  font-size: .86rem;
}

.booking-cancel-reason textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.booking-cancel-reason textarea::placeholder {
  color: var(--muted);
  opacity: .72;
}

.booking-cancel-card .dialog-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

@media (max-width: 520px) {
  .booking-cancel-card .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .booking-cancel-card .dialog-actions button {
    width: 100%;
  }
}
