/* Panier temporaire : indépendant du formulaire de paiement historique. */
section.checkout-panel { margin: 24px 0; padding: 24px; }
.checkout-notice { border-color: var(--accent); }
.checkout-panel > h2 { font-size: 20px; margin: 0 0 16px; }
.checkout-notice > h2 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
.selection-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.selection-table[hidden] { display: none; }
.selection-table th, .selection-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
.selection-table th { color: var(--muted); font-size: 11px; font-weight: 500; }
.selection-table th:first-child, .selection-table td:first-child { text-align: left; overflow-wrap: anywhere; }
.selection-table td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.selection-table td:last-child { font-weight: 600; color: var(--gold-light); }
.selection-total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  section.checkout-panel { padding: 20px; }
  .selection-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .selection-table, .selection-table tbody { display: block; }
  .selection-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .selection-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; border: 0; }
  .selection-table td:first-child { display: block; padding: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.5; }
  .selection-table td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 400; white-space: normal; }
}

.reservation-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.reservation-layout .checkout-panel { min-width: 0; }
#reservation-form { display: grid; gap: 12px; }
#reservation-form label, .reservation-promo label { display: grid; gap: 5px; }
#reservation-form input:not([type=checkbox]), #reservation-form select, #reservation-form textarea, .reservation-promo input { width: 100%; min-width: 0; }
#reservation-form fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 0; min-width: 0; display: grid; gap: 14px; }
#reservation-pickup legend { padding-inline: 6px; color: var(--gold-light); font-weight: 600; }
#reservation-pickup select {
  min-height: 54px;
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.45;
  border-color: #62583b;
  border-radius: 7px;
  color-scheme: dark;
  cursor: pointer;
}
#reservation-pickup select:disabled { cursor: default; }
#reservation-pickup select:hover:not(:disabled), #reservation-pickup select:focus { border-color: var(--accent); }
#reservation-pickup select:focus-visible { outline-offset: 2px; }
@supports (appearance: base-select) and selector(select::picker(select)) {
  #reservation-pickup select, #reservation-pickup select::picker(select) { appearance: base-select; }
  #reservation-pickup select { align-items: center; justify-content: space-between; white-space: normal; overflow-wrap: anywhere; }
  #reservation-pickup select::picker-icon { color: var(--gold-light); flex-shrink: 0; margin-inline-start: 10px; }
  #reservation-pickup select::picker(select) {
    inline-size: anchor-size(width);
    max-inline-size: calc(100vw - 32px);
    padding: 5px;
    border: 1px solid #62583b;
    border-radius: 8px;
    background: #191c16;
    color: var(--fg);
    box-shadow: 0 12px 28px #0008;
  }
  #reservation-pickup option {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 5px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #reservation-pickup option:checked { background: #2e2b20; color: var(--gold-light); }
  #reservation-pickup option:hover, #reservation-pickup option:focus-visible { background: #3b3424; }
  #reservation-pickup option:focus-visible { outline-offset: -2px; }
}
#reservation-form .legal-acceptance { display: flex; align-items: baseline; gap: 8px; }
#reservation-form .legal-acceptance input { width: auto; }
.reservation-promo { margin: 18px 0 12px; }
.reservation-promo-entry {
  padding: 12px 14px;
  border: 1px solid #c8a96050;
  border-radius: 9px;
  background: #c8a9600d;
}
.reservation-promo-entry label { color: var(--gold-light); font-size: 13px; font-weight: 600; }
.reservation-promo-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 6px; }
.reservation-promo input { font-size: 16px; }
.reservation-promo .btn { min-height: 44px; padding-inline: 12px; }
.reservation-promo .btn:disabled, #reservation-promo-remove:disabled { opacity: .55; cursor: default; }
.reservation-recap {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #11140e;
}
.reservation-recap.has-promo {
  margin-top: 18px;
  border-color: #63834e;
  background: linear-gradient(135deg, #222e1b 0%, #172015 68%);
  box-shadow: inset 0 1px 0 #c1dc9830;
}
.reservation-promo-applied:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #8daf6850;
}
.reservation-promo-check {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: #d4e8bd;
  color: #26381d;
  font-weight: 700;
}
.reservation-promo-code { min-width: 0; flex: 1; }
.reservation-promo-code span { display: block; color: #b9d3a4; font-size: 12px; }
.reservation-promo-code strong { display: block; color: #f0f7e8; font-size: 16px; overflow-wrap: anywhere; }
#reservation-promo-remove {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #8daf6866;
  border-radius: 50%;
  background: #283722;
  color: #e0edd8;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}
#reservation-promo-remove:hover:not(:disabled) { background: #384a30; }
#reservation-promo-status { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
#reservation-promo-status:empty, #reservation-promo-entry[hidden] { display: none; }
#reservation-promo:has(#reservation-promo-entry[hidden]):has(#reservation-promo-status:empty) { display: none; }
#reservation-promo-status[data-state=error] { color: #ffc4b8; }
.reservation-promo input[aria-invalid=true] { border-color: #e99788; }
.reservation-recap-amounts { margin: 0; }
.has-promo .reservation-recap-amounts { padding-top: 8px; }
.reservation-recap-amounts > div:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
}
.reservation-recap-amounts > div:not(.reservation-recap-total) { padding: 4px 0; font-size: 14px; }
.reservation-recap dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
#reservation-subtotal-row { color: #c1c8b9; }
#reservation-discount-row { color: #d4e8bd; font-weight: 600; }
.reservation-recap-total { color: var(--gold-light); font-weight: 700; line-height: 1.2; }
.reservation-recap-total small { font-size: .68em; color: var(--muted); white-space: nowrap; }
.has-promo .reservation-recap-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid #8daf6850; color: #f0f7e8; }
.reservation-recap-total dd { font-size: clamp(1.15rem, 4.5vw, 1.6rem); }
.has-promo .reservation-recap-total dd { color: #d4e8bd; }
@media (max-width: 600px) {
  .reservation-recap-total dt { font-size: 14px; }
  .reservation-recap-total small { display: block; margin-top: 3px; }
}
.reservation-qty { display: inline-flex; align-items: center; gap: 8px; }
.reservation-qty button { min-width: 36px; min-height: 36px; padding: 3px 8px; }
#reservation-form button:disabled { opacity: .5; cursor: default; }
#reservation-result:not(:empty) { color: var(--gold-light); border-left: 2px solid var(--accent); padding-left: 12px; }
@media (max-width: 960px) {
  .reservation-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .reservation-layout .checkout-panel { margin: 0; }
  .reservation-layout { margin: 20px 0; }
}

.reservation-product { display: flex; align-items: center; gap: 12px; }
.reservation-product img { flex: 0 0 auto; width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--border); border-radius: 7px; }
