/* ============================================================
   Jungle Land — shop pages: gift certificates, cart, checkout.
   Shared by all three pages (loaded via AddShopAssets()).
   ============================================================ */

/* ---- gift price trio (mirrors the admission cards) ---- */
.gc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 32px 0 0; }
.gc-card { border-radius: var(--r-lg); padding: 34px; text-align: center; }
.gc-card .gc-who { font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.gc-card .gc-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 58px); line-height: 1; margin: 14px 0 4px; color: var(--ink); }
.gc-card .gc-note { font-weight: 600; font-size: 13.5px; color: var(--moss); }
.gc-card .gc-sep { margin: 16px auto 0; width: 56px; border-top: 3px dashed var(--sand-line); }
.gc-card .gc-desc { font-weight: 600; font-size: 14.5px; color: var(--body); margin-top: 14px; line-height: 1.6; }
.gc-card.is-featured { background: var(--ink); position: relative; border-radius: var(--r-lg); box-shadow: 0 16px 36px rgba(23, 66, 31, .25); }
.gc-card.is-featured .gc-price { color: var(--cream); }
.gc-card.is-featured .gc-note { color: var(--on-dark-dim); }
.gc-card.is-featured .gc-sep { border-color: rgba(253, 249, 237, .25); }
.gc-card.is-featured .gc-desc { color: var(--on-dark-body); }
.gc-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .gc-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .gc-card.is-featured { margin-top: 10px; }
}

/* ---- how it works band ---- */
.gc-band { background: var(--sand); padding: 38px 0; margin-top: 56px; }
.gc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gc-step { display: flex; gap: 14px; align-items: flex-start; }
.gc-step .n {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.gc-step b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.gc-step div span { display: block; font-weight: 600; font-size: 14px; color: var(--body); margin-top: 3px; line-height: 1.5; }
@media (max-width: 760px) { .gc-steps { grid-template-columns: 1fr; gap: 16px; } }

/* ---- purchase form ---- */
.gift-form { max-width: 880px; margin: 0 auto; padding: 38px 40px 34px; }
.gift-form h2 { font-size: 30px; }
.gf-steppers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 0; }
.gf-steppers.gf-steppers-3 { grid-template-columns: repeat(3, 1fr); }
.stepper { background: var(--sand); border-radius: var(--r-sm); padding: 14px 12px 16px; text-align: center; }
.stepper .st-label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.stepper .st-sub { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stepper .st-ctrl { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.stepper .st-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sh-card-sm);
  transition: transform .15s, background .2s;
}
.stepper .st-btn:hover { background: var(--pale-green); transform: scale(1.06); }
.stepper .st-btn:active { transform: scale(.96); }
.stepper input {
  width: 52px;
  height: 38px;
  border: 2px solid var(--sand-line);
  border-radius: var(--r-xs);
  background: #fff;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.stepper input:focus { outline: none; border-color: var(--leaf); }
.stepper-visits { background: var(--pale-yellow); }
@media (max-width: 860px) { .gf-steppers, .gf-steppers.gf-steppers-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .gf-steppers, .gf-steppers.gf-steppers-3 { grid-template-columns: 1fr; } }

.gf-personal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 640px) { .gf-personal { grid-template-columns: 1fr; } }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--sand-dim); }

.gf-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.gf-total { font-weight: 700; font-size: 16px; color: var(--body-2); }
.gf-total b { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--ink); margin-left: 6px; }
.gf-total .gf-tax { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) {
  .gift-form { padding: 26px 20px; }
  .gf-foot { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---- slim dark hero for cart / checkout ---- */
.shop-hero { background: var(--ink); padding: 46px var(--pad-x) 42px; text-align: center; }
.shop-hero .eyebrow { background: rgba(253, 249, 237, .14); color: var(--topbar-tint); }
.shop-hero h1 { color: var(--cream); margin: 14px 0 0; }

.shop-wrap { max-width: calc(var(--w-narrow) + var(--pad-x) * 2); }

/* ---- cart lines ---- */
.cart-lines { display: flex; flex-direction: column; gap: 16px; }
.cart-line { display: flex; justify-content: space-between; gap: 20px; padding: 22px 26px; }
.cl-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.cl-num { color: var(--moss); font-size: 15px; margin-left: 4px; }
.cl-to { font-weight: 600; font-size: 14.5px; color: var(--body-2); margin-top: 6px; }
.cl-to b { color: var(--ink); }
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip.chip-visits { background: var(--pale-yellow); border-color: var(--note-line); }
.chip.chip-free { background: var(--pale-green); border-color: var(--green-mid); }
.cl-msg { margin-top: 12px; font-weight: 600; font-style: italic; font-size: 14px; color: var(--muted); }
.cl-side { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cl-price { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); }
.cl-per { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.cl-remove-form { margin-top: auto; padding-top: 12px; }
.cl-remove {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 2px solid var(--sand-line);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--berry);
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.cl-remove::before {
  content: "\00D7";
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.cl-remove:hover {
  border-color: var(--berry);
  background: var(--berry);
  color: #fff;
  transform: translateY(-1px);
}
.cl-remove:active { transform: none; }
.cl-remove.is-loading::before { display: none; }
@media (max-width: 560px) {
  .cart-line { flex-direction: column; padding: 20px; }
  .cl-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
  .cl-remove-form { margin: 0; padding: 0; }
  .cl-remove { margin: 0; }
}

/* ---- cart summary ---- */
.cart-summary { margin-top: 22px; padding: 26px 30px; }
.cs-row { display: flex; justify-content: space-between; gap: 14px; font-weight: 600; font-size: 15.5px; color: var(--body-2); padding: 7px 0; }
.cs-row b { color: var(--ink); font-weight: 700; }
.cs-row.cs-total { border-top: 2px dashed var(--sand-line); margin-top: 8px; padding-top: 14px; font-size: 17px; }
.cs-row.cs-total b { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.cs-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.cs-add { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cart-summary { padding: 22px 20px; }
  .cs-actions { flex-direction: column; align-items: stretch; }
  .cs-add { flex-direction: column; }
  .cs-actions .btn { text-align: center; }
}

/* ---- empty cart ---- */
.cart-empty { max-width: 560px; margin: 0 auto; padding: 46px 30px; }
.cart-empty .ce-art { font-size: 54px; line-height: 1; }
.cart-empty h2 { margin-top: 14px; }
.cart-empty .sub { margin-top: 8px; }
.cart-empty .ce-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 460px) { .cart-empty .ce-actions { flex-direction: column; } }

/* ---- checkout ---- */
.co-grid { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } }
.co-form { padding: 32px 34px; }
.co-form h2 { font-size: 28px; }
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.co-wide { grid-column: 1 / -1; }

/* shown instead of the card fields when online payment is switched off */
.co-note { margin-top: 18px; }

.co-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-brands { display: flex; gap: 6px; align-items: center; }
.co-brands svg { width: 36px; height: 24px; display: block; }
.cs-cur { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }

.co-terms { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--body-2); line-height: 1.55; }
.co-terms input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green); cursor: pointer; }
.co-terms a { color: var(--green); font-weight: 700; text-decoration: underline; }
.co-terms a:hover { color: var(--accent-deep); }

/* ---- card fields (Bambora-hosted iframes) ----
   The iframe renders the text; this styles the box around it, so it has to
   match .field input exactly or the card row looks pasted in. */
.co-card { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--sand-line); }
.co-card-t { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.co-card .co-fields { margin-top: 16px; }
.co-hosted {
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--sand-line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .2s;
}
.co-hosted iframe { display: block; width: 100%; height: 100%; border: 0; }
.co-hosted.is-invalid { border-color: var(--berry); }
.co-field-error { margin-top: 6px; font-weight: 700; font-size: 12.5px; color: var(--berry); }
.co-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 560px) {
  .co-form { padding: 24px 20px; }
  .co-fields { grid-template-columns: 1fr; }
}

.co-side { padding: 26px 28px; position: sticky; top: 96px; }
.co-side-t { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.co-lines .cart-line { background: none; box-shadow: none; border-radius: 0; padding: 14px 0; border-bottom: 2px dashed var(--sand-line); }
.co-lines .cl-title { font-size: 17px; }
.co-lines .cl-price { font-size: 20px; }
.co-edit { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--green); text-decoration: underline; }
.co-edit:hover { color: var(--accent-deep); }

/* ---- order received ---- */
.co-done { display: none; position: relative; overflow: hidden; max-width: 620px; margin: 0 auto; padding: 52px 34px 44px; }
.co-done.is-on { display: block; }
.co-done-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 34px); color: var(--ink); }
.co-done-sub { font-weight: 600; font-size: 15.5px; color: var(--body); margin-top: 12px; line-height: 1.7; }
