/* Cancellation policy (T-351): the customer-facing summary (portal booking confirmation,
   My Bookings, card on file), the Settings card and its editor modal. */

/* ---------- Customer-facing summary ---------- */

.bcp-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #1f2937;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.4;
}

.bcp-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.bcp-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bcp-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.bcp-rows li + li {
  border-top: 1px dashed #e5e7eb;
}

.bcp-rows strong {
  text-align: right;
  white-space: nowrap;
}

.bcp-notes {
  margin: 8px 0 0;
  white-space: pre-line;
}

.bcp-meta {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: #4b5563;
}

.bcp-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.bcp-short {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: #4b5563;
}

.bcp-fee-warning {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.875rem;
  text-align: left;
}

/* ---------- Settings card ---------- */

#cancellation-policy-card .bcp-status {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
}

#cancellation-policy-card .bcp-status-on {
  background: #dcfce7;
  color: #15803d;
}

#cancellation-policy-card .bcp-notice {
  margin: 0;
}

/* ---------- Editor modal ---------- */
/* Layout comes from the shared Settings modal block (#reminder-presets-modal …) in
   css/pages/settings.css; only the editor's own content is styled here. */

.bcp-modal-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
}

#cancellation-policy-modal .bcp-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bcp-config {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bcp-field-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.bcp-hint {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.bcp-input,
.bcp-select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fff;
  color: #1f2937;
}

.bcp-input-wide {
  width: 100%;
}

.bcp-input-number {
  width: 72px;
}

.bcp-no-show-row {
  margin-top: 8px;
}

.bcp-textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
}

.bcp-tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.bcp-remove-tier {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  padding: 0 4px;
}

.bcp-preview-label {
  font-weight: 600;
  font-size: 13px;
}

.bcp-error {
  color: #de3b40;
  font-size: 13px;
  min-height: 18px;
}
