/* [snp_booking_checkout] — WooCommerce-style two-column checkout page.
   Reuses the base booking plugin's .form-group/.form-label/.form-input/.btn
   classes and CSS custom properties for visual consistency, same as
   snp-booking.css does for the other front-end shortcode. */

.snp-checkout-card {
  max-width: 960px;
  margin: 0 auto;
}

.snp-checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 782px) {
  .snp-checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared "card" look for each block in the grid — Billing Information and
   Payment Method (stacked in the left column) and Booking Summary (right
   column) — so the page reads as separate cards instead of one continuous
   block of fields. A tinted background (not plain white/page-color) plus a
   shadow is what actually makes each block read as a distinct card;
   border alone wasn't visibly enough against the page background. */
.snp-checkout-card-box {
  background: #f6f7f4;
  border: 1px solid #e2e5de;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 18px;
}

.snp-checkout-card-box h3 {
  margin-top: 0;
}

.snp-checkout-card-box + .snp-checkout-card-box {
  margin-top: 1.5rem;
}

/* Booking Summary + Payment Method share one card (right column) and get
   their own tint — a light green pulled from the site's brand green
   (#57913d) — so that merged card visually stands apart from the Billing
   Information card, which keeps the neutral tint above. */
.snp-checkout-card-box.snp-payment-section {
  background: #eef5e8;
  border-color: #cfe3c2;
}

/* Separates the Booking Summary rows above from Payment Method below,
   now that they're stacked inside the same card. */
.snp-checkout-divider {
  border-top: 1px solid #cfe3c2;
  margin: 1.25rem 0;
}

/* ── Required-field markers ───────────────────────────────────────────────── */

.snp-required-mark {
  /* var(--color-primary)/var(--color-error)/var(--color-base-100) below
     don't exist on this page (they're a wp-dashboard-main/DaisyUI theme
     variable this front-end page never loads), so every hsl(var(--color-x))
     in this file was silently invalid CSS — replaced with real colors from
     the site's own palette throughout. */
  color: #dc2626;
  font-weight: 700;
}

.snp-required-hint {
  margin: 0 0 1rem;
  font-style: italic;
}

/* ── Payment method — inline checkbox-style options, one shared panel
   area below reveals the fields for whichever option is picked (instead
   of each option carrying its own fields directly beneath it). Still a
   <input type="radio">, not a literal checkbox — mutual exclusivity
   (only one payment method at a time) needs radio semantics, this is a
   visual restyle only. Nothing is pre-selected on load. ── */

.snp-payment-section h3 {
  margin-top: 0;
}

.snp-payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.snp-payment-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1A303D;
  cursor: pointer;
}

.snp-payment-tab:has(input:checked) {
  color: #57913d;
}

/* Native radio, restyled to look like a square checkbox — appearance:none
   drops the browser's default circular radio rendering so the custom
   square/checkmark below can take over. */
.snp-payment-tab input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  border: 2px solid rgba(87, 145, 61, 0.35);
  border-radius: 0.25rem;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.snp-payment-tab input:hover {
  border-color: #57913d;
}

.snp-payment-tab input:checked {
  background: #57913d;
  border-color: #57913d;
}

.snp-payment-tab input:checked::after {
  content: "";
  display: block;
  width: 0.3rem;
  height: 0.55rem;
  margin: 0.06rem auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.snp-payment-panel {
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fafafa;
}

.snp-payment-panel[hidden] {
  display: none;
}

.snp-payment-instructions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.snp-payment-instructions img {
  max-width: 150px;
  height: auto;
  border-radius: 0.4rem;
  border: 1px solid #e5e7eb;
}

#snp-paypal-button-container {
  max-width: 320px;
}

/* Upload Receipt (GCash/Maya) — the native file input's own text ("No file
   chosen" etc.) is left as-is, but the "Choose File" control itself is
   restyled into a solid brand-green button so it reads as an actionable
   button instead of blending into the plain-text label next to it. */
.snp-payment-panel input[type="file"] {
  font-size: 0.8125rem;
}

.snp-payment-panel input[type="file"]::file-selector-button {
  background: #57913d;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  margin-right: 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s;
}

.snp-payment-panel input[type="file"]::file-selector-button:hover {
  background: #4a7a32;
}

/* ── Order/booking summary card (right column) ───────────────────────────── */
/* Card look itself (background/border/radius/padding) now comes from the
   shared .snp-checkout-card-box class applied alongside this one. */

.snp-checkout-summary .snp-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.snp-summary-row--total {
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.2rem;
  /* "Total" sits right next to its amount instead of pinned to the far
     left — both pushed together to the right, matching where the other
     rows' values already align. */
  justify-content: flex-end !important;
  gap: 0.5rem;
  align-items: center;
}
#snp-co-total-display {
    font-size: 1rem;
}
.snp-summary-addons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.snp-summary-addons > span {
  font-size: 0.8125rem;
  color: #5A7080;
  margin-bottom: 0.2rem;
}

#snp-checkout-submit {
  width: 100%;
  margin-top: 1rem;
  background-color: #57913d;
  border-radius: 50px;
}

#snp-co-message {
  margin-top: 0.75rem;
}

/* Acordion form layout */
.accordion { border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid #ddd; }
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f6f7f4;
    cursor: pointer;
    font-weight: bold;
}
.accordion-header:hover { background: #f6f7f4; }
.accordion-header .arrow { transition: transform 0.2s ease; }
.accordion-header.active .arrow { transform: rotate(90deg); }
.accordion-body {
    display: none;
    padding: 14px 18px;
    background: #fff;
}
.count-badge {
    background: #57913d;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
    margin-left: 10px;
}
/* Tab */
.tab-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
    width: 486px;
    overflow: auto;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #555;
    transition: color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.tab-item:hover {
    color: #000;
}

.tab-item.active {
    color: #57913d;
    border-bottom-color: #57913d;
    font-weight: 600;
}

.tab-label {
    pointer-events: none;
}

.tab-content-wrap {
    padding: 15px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* optional: slim scrollbar for the tab bar */
.tab-list::-webkit-scrollbar {
    height: 4px;
}
.tab-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}
.tab-item.snp-locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.form-input.snp-error {
    border-color: #e53935;
}
.form-radio-group.snp-error {
    border: 1px solid #e53935;
    padding: 5px;
}
/* ── Thank-you panel ──────────────────────────────────────────────────────── */

.snp-checkout-thankyou {
  text-align: center;
  padding: 3rem 1.5rem;
}

.snp-checkout-thankyou h2 {
  color: #57913d;
}

.snp-order-key {
  font-size: 0.9375rem;
}

/* ── [snp_booking_cancel] shortcode (class-snp-cancel-booking.php) ──────────
   Reuses .snp-checkout-card/.snp-checkout-card-box/.snp-checkout-summary/
   .snp-summary-row from the checkout page above — same look, no page of
   its own to design from scratch. .snp-sc-message itself (snp-booking.css)
   is always the red "something's wrong" styling; this adds the one
   variant it doesn't have, for "your booking was canceled" instead. */

.snp-sc-message--success {
  background: #dcf5d5;
  color: #2f5720;
}

/* .btn/.btn-sm come from the base booking plugin (see this file's own
   header comment) — neither ships a red/danger variant usable outside
   the dashboard shell (wp-dashboard-main's own .btn-error is scoped
   under .wpdashboard, which this front-end page never sits inside), so
   Cancel My Booking gets one of its own instead. */
.snp-btn-danger {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.snp-btn-danger:hover {
  background-color: #941616;
  border-color: #941616;
}
