.page-booking-receipt {
  background: #eef1f6;
  min-height: 100vh;
}

.booking-receipt {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 28px;
}

.booking-receipt__loading {
  text-align: center;
  color: #667;
  padding: 40px 12px;
}

.booking-receipt__sheet {
  position: relative;
  background: #fff;
  border: 1px solid #d7dde8;
  border-radius: 4px;
  padding: 22px 16px 18px;
  box-shadow: 0 8px 24px rgba(18, 35, 63, 0.08);
  overflow: hidden;
}

.booking-receipt__stamp {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 78px;
  height: 78px;
  border: 3px solid #c62828;
  border-radius: 50%;
  color: #c62828;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-18deg);
  opacity: 0.88;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.2;
  padding: 6px;
  z-index: 2;
}

.booking-receipt__stamp.is-paid {
  border-color: #168447;
  color: #168447;
}

.booking-receipt__stamp.is-done {
  border-color: #9a181c;
  color: #9a181c;
  font-size: 12px;
}

.booking-receipt__stamp.is-void {
  border-color: #8a94a6;
  color: #8a94a6;
  font-size: 12px;
}

.booking-receipt__stamp.is-rank {
  border-color: #9a181c;
  color: #9a181c;
  font-size: 12px;
}

.booking-receipt__must-rank {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #9a181c;
  background: linear-gradient(180deg, #fff1f1, #ffe8e8);
}

.booking-receipt__must-rank[hidden] {
  display: none !important;
}

.booking-receipt__must-rank strong {
  display: block;
  margin: 0 0 6px;
  color: #9a181c;
  font-size: 16px;
  line-height: 1.35;
}

.booking-receipt__must-rank p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #5c2018;
}

.booking-receipt__rank.is-urgent {
  border: 2px solid #9a181c;
  background: linear-gradient(145deg, #fff4f4, #ffe8e8 55%, #ffd6d6 100%);
}

.booking-receipt__confirm.is-warn {
  background: #fff1f1;
  border-color: #e7b0b0;
  color: #9a181c;
}

.booking-receipt__sheet.is-void {
  filter: grayscale(0.35);
}

.booking-receipt__countdown[hidden] {
  display: none !important;
}

.booking-receipt__countdown {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #f0d48a;
  background: linear-gradient(135deg, #fff9e8, #fdf1d6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.booking-receipt__countdown-label {
  font-size: 11px;
  color: #8a6414;
  letter-spacing: 1px;
}

.booking-receipt__countdown-clock {
  font-size: 22px;
  font-weight: 800;
  color: #b45309;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.booking-receipt__countdown-note {
  font-size: 11px;
  line-height: 1.4;
  color: #8a6414;
}

.booking-receipt__countdown.is-urgent {
  border-color: #e9a1a1;
  background: linear-gradient(135deg, #fff1f1, #ffe3e3);
}

.booking-receipt__countdown.is-urgent .booking-receipt__countdown-clock {
  color: #c62828;
}

.booking-receipt__countdown.is-urgent .booking-receipt__countdown-label,
.booking-receipt__countdown.is-urgent .booking-receipt__countdown-note {
  color: #9a2b2b;
}

.booking-receipt__title {
  margin: 0 56px 16px 0;
  font-size: 17px;
  line-height: 1.35;
  color: #12233f;
  text-align: center;
}

.booking-receipt__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.booking-receipt__table th,
.booking-receipt__table td {
  border: 1px solid #d7dde8;
  padding: 9px 10px;
  vertical-align: top;
}

.booking-receipt__table th {
  width: 30%;
  background: #f7f9fc;
  color: #44566f;
  font-weight: 600;
  text-align: left;
}

.booking-receipt__table td {
  color: #12233f;
  font-weight: 600;
  word-break: break-all;
}

.booking-receipt__fees {
  margin-top: 14px;
  border: 1px solid #d7dde8;
  border-radius: 4px;
  padding: 12px;
}

.booking-receipt__fees h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #12233f;
}

.booking-receipt__collector {
  margin: 0 0 10px;
  font-size: 12px;
  color: #5a6b82;
}

.booking-receipt__fee-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed #e2e8f2;
}

.booking-receipt__fee-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.booking-receipt__fee-row strong {
  display: block;
  font-size: 13px;
  color: #12233f;
}

.booking-receipt__fee-row em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
  color: #9a181c;
}

.booking-receipt__fee-detail {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #667788;
  line-height: 1.4;
}

.booking-receipt__fee-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}

.booking-receipt__fee-status.is-paid {
  color: #168447;
}

.booking-receipt__pay-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 4px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c62828, #9a181c);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.booking-receipt__pay-banner[hidden] {
  display: none !important;
}

.booking-receipt__travel {
  margin-top: 4px;
}

.booking-receipt__confirm {
  margin: 4px 0 2px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff8e8;
  border: 1px solid #f0d48a;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 700;
}

.booking-receipt__tip {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #f5f8ff;
  border-left: 3px solid #0039d8;
  color: #243552;
  font-size: 13px;
  line-height: 1.55;
}

.booking-receipt__barcode {
  margin: 16px auto 8px;
  width: 78%;
  height: 42px;
  background:
    repeating-linear-gradient(
      90deg,
      #12233f 0 2px,
      transparent 2px 4px,
      #12233f 4px 5px,
      transparent 5px 8px,
      #12233f 8px 11px,
      transparent 11px 13px
    );
  opacity: 0.75;
}

.booking-receipt__foot-no {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #667788;
}

.booking-receipt__actions[hidden] {
  display: none !important;
}

.booking-receipt__actions {
  position: sticky;
  bottom: 8px;
  z-index: 8;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
}

.booking-receipt__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.booking-receipt__btn[hidden] {
  display: none !important;
}

.booking-receipt__btn--primary {
  background: linear-gradient(135deg, #c62828, #9a181c);
  color: #fff;
}

.booking-receipt__btn--ghost {
  background: #fff;
  color: #44566f;
  border: 1px solid #d7dde8;
}

.booking-receipt__remedy {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d7e2f5;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
}

.booking-receipt__remedy[hidden] {
  display: none !important;
}

.booking-receipt__remedy h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #12233f;
}

.booking-receipt__remedy-lead {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #51627a;
}

.booking-receipt__remedy-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: start;
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #d7dde8;
  background: #fff;
  color: inherit;
  box-shadow: 0 2px 8px rgba(18, 35, 63, 0.04);
}

.booking-receipt__remedy-card--air {
  border-color: #c5d4f5;
}

.booking-receipt__remedy-card--bank {
  border-color: #c5e6d8;
}

.booking-receipt__remedy-tag {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #667788;
}

.booking-receipt__remedy-card strong {
  font-size: 15px;
  color: #12233f;
}

.booking-receipt__remedy-card em {
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
  color: #c62828;
  justify-self: end;
}

.booking-receipt__remedy-card span:last-child {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.45;
  color: #51627a;
}

.booking-receipt__dates {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #c5d4f5;
  background: #f7faff;
}

.booking-receipt__dates[hidden] {
  display: none !important;
}

.booking-receipt__dates h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #12233f;
}

.booking-receipt__dates-lead {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #51627a;
}

.booking-receipt__week {
  margin-bottom: 10px;
}

.booking-receipt__week-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #9a181c;
}

.booking-receipt__week-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.booking-receipt__date-btn {
  border: 1px solid #d7dde8;
  background: #fff;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 12px;
  color: #12233f;
}

.booking-receipt__date-btn strong {
  display: block;
  font-size: 13px;
}

.booking-receipt__date-btn em {
  display: block;
  font-style: normal;
  color: #667788;
  font-size: 11px;
}

.booking-receipt__date-btn.is-open {
  cursor: pointer;
}

.booking-receipt__date-btn.is-selected {
  border-color: #9a181c;
  background: #fff4f4;
  color: #9a181c;
}

.booking-receipt__date-btn.is-progress {
  border-color: #f0b429;
  background: #fff8e8;
  opacity: 1;
}

.booking-receipt__date-btn.is-progress span {
  color: #b45309;
}

.booking-receipt__date-btn.is-done {
  border-color: #c5d4c8;
  background: #f4f7f5;
}

.booking-receipt__date-btn.is-done span {
  color: #168447;
}

.booking-receipt__date-btn.is-closed {
  opacity: 0.45;
}

.booking-receipt__date-btn.is-mine {
  border-color: #168447;
}

.booking-receipt__dates .booking-receipt__btn {
  margin-top: 10px;
  width: 100%;
}

.booking-receipt__btn--rank {
  background: linear-gradient(135deg, #c62828, #9a181c);
  color: #fff;
  animation: checkPromotePulse 1.6s ease-in-out infinite;
}

@keyframes checkPromotePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.35);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 8px rgba(198, 40, 40, 0);
  }
}

.booking-receipt__ladder[hidden] {
  display: none !important;
}

.booking-receipt__ladder {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.booking-receipt__ladder li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #f0c2c2;
  font-size: 13px;
  color: #5c2018;
}

.booking-receipt__ladder li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #666;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.booking-receipt__ladder li em {
  font-style: normal;
  font-weight: 700;
  flex: 1;
}

.booking-receipt__ladder li.is-next {
  border-color: #9a181c;
  background: #fff;
}

.booking-receipt__ladder li.is-next span {
  background: #9a181c;
  color: #fff;
}

.booking-receipt__ladder li strong {
  font-size: 11px;
  color: #9a181c;
}

.booking-receipt__rank {
  margin: 12px 0 0;
  padding: 14px 12px 12px;
  border-radius: 12px;
  border: 1px solid #f0d48a;
  background: linear-gradient(145deg, #fff9e8 0%, #fff3d6 55%, #ffe8b8 100%);
}

.booking-receipt__rank[hidden] {
  display: none !important;
}

.booking-receipt__rank-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(154, 24, 28, 0.1);
  color: #9a181c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.booking-receipt__rank-meta {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #7a3e00;
  font-weight: 700;
}

.booking-receipt__rank h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  color: #7a3e00;
}

.booking-receipt__rank-hook {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #5c4018;
}

.booking-receipt__rank-points {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #5c4018;
  font-size: 12px;
  line-height: 1.55;
}

.booking-receipt__rank-points li + li {
  margin-top: 4px;
}

.booking-receipt__rank-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #c62828, #9a181c);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.booking-receipt__rank-cta[hidden] {
  display: none !important;
}

.booking-receipt__rank.is-done {
  border-color: #c5e6d8;
  background: linear-gradient(145deg, #f0faf5, #e6f6ee);
}

.booking-receipt__rank.is-done .booking-receipt__rank-badge {
  background: rgba(22, 132, 71, 0.12);
  color: #168447;
}

.booking-receipt__rank.is-done h3 {
  color: #0f5132;
}

.booking-receipt__rank.is-done .booking-receipt__rank-hook,
.booking-receipt__rank.is-done .booking-receipt__rank-points {
  color: #1f5c40;
}

