/* ==========================================================================
   QiHotels / Cultto - Pre-reserva Terms & Conditions Styling
   ========================================================================== */

:root {
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-disabled: #fcd34d;
  --primary-light: #fff7ed;
  --primary-border: #ffedd5;

  --bg-page: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #b45309;

  --green-bg: #e6f4ea;
  --green-border: #a7f3d0;
  --green-text: #065f46;

  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --red-text: #991b1b;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-family:
    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 12px;
  overflow-x: hidden;
}

/* App Wrapper Container */
.app-container {
  width: 100%;
  max-width: 90%;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

/* Header Section */
.header-banner {
  background: linear-gradient(180deg, #ff7a00 0%, #f97316 100%);
  color: #ffffff;
  padding: 28px 20px 16px 20px;
  text-align: center;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.brand-logo-wrapper {
  margin-bottom: 12px;
}

.brand-logo-circle {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.header-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.header-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Status Bar Pill */
.status-pill-bar {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-width: 0;
  gap: 8px;
}

.status-pill-bar.pill-amber {
  background-color: #fffbeb;
  border-color: #f59e0b;
}

.status-pill-bar.pill-green {
  background-color: #ecfdf5;
  border-color: #10b981;
}

.status-pill-bar.pill-red {
  background-color: #fef2f2;
  border-color: #ef4444;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-main);
  min-width: 0;
  overflow-wrap: break-word;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #f97316;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.timer-box {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Main Status Summary Banner */
.status-summary-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  min-width: 0;
}

.status-summary-banner.status-banner-amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border-color: #f59e0b;
}

.status-summary-banner.status-banner-amber .status-banner-icon-wrapper {
  background-color: #fef3c7;
  color: #d97706;
  border: 1.5px solid #fcd34d;
}

.status-summary-banner.status-banner-amber .status-banner-badge {
  background-color: #fef3c7;
  color: #b45309;
}

.status-summary-banner.status-banner-amber .status-banner-title {
  color: #92400e;
}

.status-summary-banner.status-banner-amber .status-banner-subtitle {
  color: #b45309;
}

.status-summary-banner.status-banner-green {
  background: linear-gradient(135deg, #ecfdf5 0%, #e6f4ea 100%);
  border-color: #10b981;
}

.status-summary-banner.status-banner-green .status-banner-icon-wrapper {
  background-color: #d1fae5;
  color: #059669;
  border: 1.5px solid #6ee7b7;
}

.status-summary-banner.status-banner-green .status-banner-badge {
  background-color: #d1fae5;
  color: #065f46;
}

.status-summary-banner.status-banner-green .status-banner-title {
  color: #064e3b;
}

.status-summary-banner.status-banner-green .status-banner-subtitle {
  color: #047857;
}

.status-summary-banner.status-banner-red {
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border-color: #ef4444;
}

.status-summary-banner.status-banner-red .status-banner-icon-wrapper {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1.5px solid #fca5a5;
}

.status-summary-banner.status-banner-red .status-banner-badge {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-summary-banner.status-banner-red .status-banner-title {
  color: #7f1d1d;
}

.status-summary-banner.status-banner-red .status-banner-subtitle {
  color: #991b1b;
}

.status-banner-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-banner-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.status-banner-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.status-banner-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 2px;
}

.status-banner-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-banner-subtitle {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.timer-box span {
  font-weight: 700;
  color: #1e293b;
}

/* Main Content Body */
.main-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Greeting */
.greeting-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.greeting-text strong {
  color: #0f172a;
}

/* Content Cards */
.info-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #ffffff;
  min-width: 0;
  overflow-wrap: break-word;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -10px;
  margin-bottom: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Summary Grid */
.summary-box {
  background-color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  min-width: 0;
  overflow-wrap: break-word;
}

.summary-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 2px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.summary-value-highlight {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  min-width: 0;
}

.summary-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.summary-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-item.full-width {
  grid-column: span 2;
}

/* ==========================================================================
   ELEGANT RECEIPT / PAYMENT SUMMARY CARD
   ========================================================================== */

.card-header-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.card-header-with-badge .section-title {
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
}

.title-icon {
  vertical-align: middle;
  margin-right: 8px;
  color: var(--primary, #f97316);
}

.receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-hover, #ea580c);
  background: var(--primary-light, #fff7ed);
  border: 1px solid var(--primary-border, #ffedd5);
  padding: 4px 10px;
  border-radius: 20px;
}

.receipt-ticket {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow:
    0 4px 18px rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.receipt-ticket:hover {
  box-shadow:
    0 6px 24px rgba(15, 23, 42, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.03);
}

.receipt-header-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.receipt-merchant-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.receipt-tag {
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.receipt-date-text {
  color: #64748b;
  font-size: 11px;
}

.receipt-items-container {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.receipt-row:hover {
  background-color: #f8fafc;
}

.receipt-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.subtotal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary, #f97316);
}

.tax-pill {
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.tip-pill {
  font-size: 10px;
  font-weight: 700;
  color: #d97706;
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.retention-pill {
  font-size: 10px;
  font-weight: 700;
  color: #dc2626;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.receipt-row-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.receipt-row.retention .receipt-row-value {
  color: #dc2626;
}

.receipt-divider {
  position: relative;
  padding: 0 18px;
  margin: 4px 0;
}

.receipt-divider-line {
  border-top: 2px dashed #cbd5e1;
}

.receipt-total-card {
  margin: 12px 18px 16px;
  background: linear-gradient(
    135deg,
    var(--primary, #f97316) 0%,
    var(--primary-hover, #ea580c) 100%
  );
  color: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
}

.receipt-total-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.receipt-total-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.receipt-total-subtext {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

.receipt-total-amount {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.receipt-payment-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 18px;
}

.receipt-payment-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pay-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
}

.pay-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.deposit-value {
  color: #059669;
}

.balance-value {
  color: #d97706;
}

/* Abono / Deposit Card */
.abono-alert-box {
  background-color: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  min-width: 0;
  overflow-wrap: break-word;
}

.abono-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  min-width: 0;
  gap: 8px;
}

.abono-amount-title {
  font-size: 12px;
  color: var(--amber-text);
  overflow-wrap: break-word;
}

.abono-amount {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-badge-amber {
  background-color: #fef3c7;
  color: var(--amber-text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  flex-shrink: 0;
}

.status-badge-green {
  background-color: #d1fae5;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  flex-shrink: 0;
}

.status-badge-red {
  background-color: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  flex-shrink: 0;
}

.abono-method {
  font-size: 12px;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.bank-details-box {
  background-color: #fff8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  min-width: 0;
  overflow-wrap: break-word;
}

.bank-details-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.bank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.bank-table td {
  padding: 6px 0;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bank-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.bank-table td:last-child {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  width: 60%;
}

/* Green Notice Box with Vivid Attention-Grabbing Pulse */
@keyframes noticePulseGreen {
  0%,
  100% {
    background-color: #ecfdf5;
    border-color: #34d399;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    transform: scale(1);
  }
  50% {
    background-color: #d1fae5;
    border-color: #059669;
    box-shadow: 0 0 20px 4px rgba(16, 185, 129, 0.45);
    transform: scale(1.02);
  }
}

.notice-box-green {
  background-color: #ecfdf5;
  border: 2px solid #34d399;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: #064e3b;
  line-height: 1.45;
  animation: noticePulseGreen 1.6s ease-in-out infinite;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.notice-box-green strong {
  font-weight: 800;
  color: #047857;
}

.notice-box-amber {
  background-color: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.45;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.notice-box-amber strong {
  font-weight: 800;
  color: #b45309;
}

/* Policy Toggle Button & Collapsible Container */
.btn-toggle-policies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background-color: #fff7ed;
  border: 1.5px solid #ffedd5;
  border-radius: var(--radius-sm);
  color: #ea580c;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  gap: 10px;
  min-width: 0;
}

.btn-toggle-policies span {
  min-width: 0;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

.btn-toggle-policies:hover {
  background-color: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}

.btn-toggle-policies .chevron-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.btn-toggle-policies.is-open {
  background-color: #ffedd5;
  border-color: #fdba74;
}

.btn-toggle-policies.is-open .chevron-icon {
  transform: rotate(180deg);
}

.policies-collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  transition:
    max-height 0.4s ease-in-out,
    opacity 0.3s ease,
    margin-top 0.3s ease,
    padding 0.3s ease;
  min-width: 0;
}

.policies-collapsible.is-open {
  max-height: 340px;
  overflow-y: auto;
  opacity: 1;
  margin-top: 14px;
  padding: 14px;
  background-color: #fffaf5;
  border: 1px solid #fed7aa;
}

/* Custom Scrollbar for Policies Box */
.policies-collapsible::-webkit-scrollbar {
  width: 6px;
}
.policies-collapsible::-webkit-scrollbar-track {
  background: #ffedd5;
  border-radius: 4px;
}
.policies-collapsible::-webkit-scrollbar-thumb {
  background: #fdba74;
  border-radius: 4px;
}
.policies-collapsible::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* Policy Items */
.policy-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.policy-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.policy-number {
  width: 24px;
  height: 24px;
  background-color: #ffedd5;
  color: #c2410c;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.policy-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.policy-body strong {
  color: #0f172a;
  display: block;
  font-size: 13.5px;
  margin-bottom: 1px;
}

/* Terms Checkbox Box with Amber Pulse */
@keyframes noticePulseAmber {
  0%,
  100% {
    background-color: #fffbeb;
    border-color: #fcd34d;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    transform: scale(1);
  }
  50% {
    background-color: #fef3c7;
    border-color: #f59e0b;
    box-shadow: 0 0 20px 4px rgba(245, 158, 11, 0.45);
    transform: scale(1.02);
  }
}

.terms-checkbox-box {
  background-color: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 14px;
  animation: noticePulseAmber 1.6s ease-in-out infinite;
  transition: all 0.3s ease;
  min-width: 0;
}

.checkbox-label-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.custom-checkbox svg {
  display: none;
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3;
}

input[type='checkbox'] {
  display: none;
}

input[type='checkbox']:checked + .custom-checkbox {
  background-color: var(--primary);
  border-color: var(--primary);
}

input[type='checkbox']:checked + .custom-checkbox svg {
  display: block;
}

.terms-label-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.terms-label-text a,
.terms-label-text strong {
  color: #ea580c;
  text-decoration: underline;
}

/* Actions */
.actions-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background-color: #fdba74; /* disabled initial orange tone */
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: not-allowed;
  transition: all 0.25s ease;
  box-shadow: none;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.btn-primary.enabled {
  background-color: var(--primary);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary.enabled:hover {
  background-color: var(--primary-hover);
}

.btn-primary.enabled:active {
  transform: translateY(1px);
}

.btn-link-danger {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.btn-link-danger:hover {
  color: var(--red-text);
}

.footer-notice {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
}

/* Loading & Success States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 20;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #fed7aa;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(3px);
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 0;
  overflow-wrap: break-word;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px auto;
  flex-shrink: 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.modal-body {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.modal-btn-cancel {
  background: #f1f5f9;
  color: var(--text-main);
}

.modal-btn-confirm {
  background: #dc2626;
  color: #ffffff;
}

/* Success View */
.success-card {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  background-color: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.success-icon-wrapper svg {
  width: 40px;
  height: 40px;
  stroke: #059669;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}

.success-terms-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #047857;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
  max-width: 100%;
}

.success-terms-badge svg {
  flex-shrink: 0;
  stroke: #059669;
}

.success-terms-badge span {
  min-width: 0;
  overflow-wrap: break-word;
}

.success-message {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

/* Confirmation Info Box in Success View */
.confirmation-info-box {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-width: 0;
  overflow-wrap: break-word;
}

.confirmation-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.confirmation-value {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.confirmation-value-secondary {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Summary Subcard for Grouped Fields */
.summary-subcard {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  min-width: 0;
  overflow-wrap: break-word;
}

.summary-subcard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #cbd5e1;
  min-width: 0;
}

.summary-subcard-title span {
  min-width: 0;
  overflow-wrap: break-word;
}

.summary-subcard-title svg {
  color: #ea580c;
  flex-shrink: 0;
}

/* Enhanced Packages Styling */
.packages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.package-card-item {
  background: linear-gradient(135deg, #ffffff 0%, #fffdfa 100%);
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.05);
  transition: all 0.3s ease;
  min-width: 0;
}

.package-card-item:hover {
  border-color: #fdba74;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.1);
}

.package-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.package-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.package-card-name {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.package-card-badge {
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
  background-color: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.package-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #ea580c;
  white-space: nowrap;
  flex-shrink: 0;
}

.package-items-wrapper {
  background: #ffffff;
  border: 1.5px solid #ffedd5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.package-items-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ea580c;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #fed7aa;
  min-width: 0;
}

.package-items-header svg {
  color: #f97316;
  flex-shrink: 0;
}

.package-dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.package-dish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  background-color: #fffaf5;
  border: 1px solid #fff7ed;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 0;
}

.package-dish-card:hover {
  background-color: #fff7ed;
  border-color: #fed7aa;
  transform: translateX(2px);
}

.dish-category-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.dish-category-badge.category-plato {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.dish-category-badge.category-entrada {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.dish-category-badge.category-bebida {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.dish-category-badge.category-postre {
  background-color: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.dish-category-badge.category-default {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.dish-name-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  text-align: right;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Services Styling */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.service-card-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.service-card-item.detailed {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.service-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.service-name-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-type-badge {
  background-color: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.service-price-main {
  font-size: 15px;
  font-weight: 800;
  color: #059669;
  white-space: nowrap;
}

.service-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.service-meta-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #334155;
  background-color: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.service-breakdown-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 4px;
}

.breakdown-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breakdown-col .bd-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.breakdown-col .bd-value {
  font-size: 13px;
  color: #1e293b;
  font-weight: 700;
}

.breakdown-col.highlight .bd-label {
  color: #047857;
}

.breakdown-col.highlight .bd-value {
  color: #059669;
  font-weight: 800;
}

.service-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.service-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  flex-shrink: 0;
}

.service-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-price {
  font-size: 14px;
  font-weight: 800;
  color: #059669;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Financial Summary Box */
.financial-summary-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.financial-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 12px;
  min-width: 0;
}

.financial-label {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: break-word;
}

.financial-value {
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}

.financial-value-highlight {
  font-size: 15px;
  font-weight: 800;
  color: #ea580c;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 768px) {
  body {
    padding: 12px 8px;
  }

  .app-container {
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .main-content {
    padding: 16px 14px;
    gap: 16px;
  }

  .header-banner {
    padding: 22px 14px 14px 14px;
  }

  .header-title {
    font-size: 20px;
  }

  .header-subtitle {
    font-size: 12.5px;
    margin-bottom: 14px;
  }

  .status-pill-bar {
    padding: 8px 12px;
    font-size: 11.5px;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: center;
  }

  .status-summary-banner {
    padding: 14px;
    gap: 12px;
  }

  .status-banner-icon-wrapper {
    width: 42px;
    height: 42px;
  }

  .status-banner-title {
    font-size: 15px;
  }

  .status-banner-subtitle {
    font-size: 12px;
  }

  .info-card {
    padding: 14px;
  }

  .package-card-item {
    padding: 14px;
  }

  .package-items-wrapper {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px 4px;
  }

  .app-container {
    border-radius: var(--radius-sm);
  }

  .main-content {
    padding: 12px 10px;
    gap: 14px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary-item.full-width {
    grid-column: span 1;
  }

  .status-pill-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 8px 10px;
  }

  .abono-header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .package-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .package-card-price {
    align-self: flex-end;
  }

  .package-dish-card {
    gap: 8px;
    padding: 8px 10px;
  }

  .dish-name-text {
    font-size: 12.5px;
  }

  .bank-table td:first-child {
    width: 40%;
  }

  .bank-table td {
    font-size: 12px;
  }

  .modal-card {
    padding: 18px 14px;
  }

  .modal-actions {
    flex-direction: column;
  }
}
