/* Guest cancellation flow (assets/js/cancel-flow.js) and the cancellation status block on the reservation page. */

html.rpr-cx-open {
  overflow: hidden;
}

.rpr-cx {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rpr-cx-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 51, 0.55);
}

.rpr-cx-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px 22px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10, 26, 51, 0.3);
  color: var(--rpr-text, #0a1a33);
}

.rpr-cx-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--rpr-text-secondary, #5c6b80);
  cursor: pointer;
}

.rpr-cx-title {
  margin: 0 28px 12px 0;
  font-size: 18px;
  line-height: 1.3;
}

.rpr-cx-steps {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cx-steps li {
  flex: 1;
  padding: 6px 0 0;
  border-top: 3px solid var(--rpr-border, #e2e6ec);
}

.rpr-cx-steps li.is-current {
  border-top-color: var(--rpr-primary, #1b3b77);
  color: var(--rpr-text, #0a1a33);
  font-weight: 600;
}

.rpr-cx-steps li.is-done {
  border-top-color: #7da0d8;
}

.rpr-cx-muted {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cx-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff6e0;
  font-size: 14px;
  line-height: 1.45;
}

.rpr-cx-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecea;
  color: #8a1f17;
  font-size: 14px;
  line-height: 1.45;
}

.rpr-cx-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}

.rpr-cx-sum {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--rpr-border, #e2e6ec);
  border-radius: 12px;
}

.rpr-cx-sum.is-refund {
  background: #eaf6ee;
  border-color: #b9e0c5;
}

.rpr-cx-sum-label {
  font-size: 12px;
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cx-sum-amount {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.rpr-cx-lines {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.rpr-cx-line {
  padding: 9px 0;
  border-top: 1px solid var(--rpr-border, #e2e6ec);
  font-size: 14px;
}

.rpr-cx-line-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rpr-cx-line-amt {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rpr-cx-line-paid {
  color: var(--rpr-text-secondary, #5c6b80);
  font-size: 12.5px;
}

.rpr-cx-line.is-none .rpr-cx-line-amt strong {
  color: #8a1f17;
}

.rpr-cx-line.is-deposit .rpr-cx-line-label {
  font-weight: 600;
}

.rpr-cx-line-reason {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cx-unpaid {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--rpr-bg-hover-3, #f3f5f8);
  font-size: 13px;
  line-height: 1.45;
}

.rpr-cx-unpaid ul {
  margin: 4px 0 0 16px;
  padding: 0;
  list-style: disc;
}

.rpr-cx-label {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.rpr-cx-select,
.rpr-cx-textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--rpr-border, #cfd6e0);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
}

.rpr-cx-hint {
  min-height: 18px;
  margin: -6px 0 6px;
  font-size: 12.5px;
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cx-confirm-text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.rpr-cx-dl {
  margin: 0 0 14px;
  font-size: 14px;
}

.rpr-cx-dl dt {
  margin: 8px 0 2px;
  font-size: 12px;
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cx-dl dd {
  margin: 0;
  white-space: pre-wrap;
}

.rpr-cx-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.rpr-cx-danger {
  background: #b3261e;
}

.rpr-cx-danger:disabled {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .rpr-cx-box {
    padding: 20px 16px 16px;
  }

  .rpr-cx-actions {
    flex-direction: column-reverse;
  }

  .rpr-cx-actions button {
    width: 100%;
  }
}

/* ---- Reservation page: cancellation + refund status ---- */
.rpr-cxs {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--rpr-border, #e2e6ec);
  border-radius: 14px;
  background: #fff;
}

.rpr-cxs.is-refunded {
  border-color: #b9e0c5;
  background: #f3fbf5;
}

.rpr-cxs.is-refund_pending {
  border-color: #f0d9a0;
  background: #fffaf0;
}

.rpr-cxs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}

.rpr-cxs-title {
  font-size: 15px;
  font-weight: 700;
}

.rpr-cxs-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.rpr-cxs-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.rpr-cxs-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.rpr-cxs-lines .is-none {
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cxs-why {
  display: block;
  font-size: 12px;
  color: var(--rpr-text-secondary, #5c6b80);
}

.rpr-cxs-notes {
  margin: 8px 0 0;
  font-size: 13px;
}
