/* ============================================================================
   HIGHLAND VAULT — "Pick a bundle" cards (single competition page)
   Part of the HV Bundle Picker plugin (includes/class-hvbp-bundle-picker.php + assets/js/bundle-picker.js).
   Colours are fixed (white cards, light border, blue price) to match the white
   buy box; the active card is light blue with a blue border.
   ========================================================================== */

body.hv-theme .hv-bundles { margin: 0 0 16px; }

/* Header: "Pick a bundle"            "£3.99 per ticket" */
body.hv-theme .hv-bundles__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 14px;
}
body.hv-theme .hv-bundles__title {
  margin: 0 !important; padding: 0;
  color: #0F1B3D !important; font-size: var(--hv-fs-h4, 1.125rem) !important; font-weight: var(--hv-fw-bold, 700) !important;
  line-height: 1.2; letter-spacing: 0; text-transform: none;
}
body.hv-theme .hv-bundles__unit { color: #5B6478; font-size: var(--hv-fs-sm, 0.875rem); white-space: nowrap; }

/* "Max 25 tickets per person · 15 more for you" */
body.hv-theme .hv-bundles__limit { margin: -6px 0 12px !important; color: #5B6478; font-size: 13px; line-height: 1.4; max-width: none; }

/* Grid: three cards per row */
body.hv-theme .hv-bundles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Card */
body.hv-theme .hv-bundles button.hv-bundle {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
  min-height: 76px; width: 100%; margin: 0; padding: 12px 16px !important; text-align: left;
  background: #fff !important; color: #0F1B3D !important;
  border: 1.5px solid #DCE3EE !important; border-radius: 12px !important; box-shadow: none !important;
  font-family: inherit; text-transform: none; letter-spacing: 0; line-height: 1.1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.08s ease;
}
body.hv-theme .hv-bundles button.hv-bundle:hover { border-color: var(--hv-primary, #065BE0) !important; }
body.hv-theme .hv-bundles button.hv-bundle:active { transform: scale(0.97); }
body.hv-theme .hv-bundles button.hv-bundle:focus-visible { outline: none; box-shadow: var(--hv-ring, 0 0 0 3px rgba(6, 91, 224, 0.4)) !important; }

/* Selected card (border grows 1.5px → 2px; padding trimmed so nothing shifts) */
body.hv-theme .hv-bundles button.hv-bundle.is-active {
  background: #EAF2FE !important; border: 2px solid var(--hv-primary, #065BE0) !important;
  padding: 11.5px 15.5px !important;
}

/* "5 tickets" + "£19.95" */
body.hv-theme .hv-bundle__qty { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
body.hv-theme .hv-bundle__qty b {
  color: #0F1B3D; font-size: 22px; font-weight: var(--hv-fw-bold, 700); line-height: 1;
  font-variant-numeric: tabular-nums;
}
body.hv-theme .hv-bundle__qty span { color: #5B6478; font-size: 14px; font-weight: var(--hv-fw-regular, 400); }
body.hv-theme .hv-bundle__price { color: var(--hv-primary, #065BE0); font-size: 15px; font-weight: var(--hv-fw-bold, 700); font-variant-numeric: tabular-nums; }

/* "1 ticket" + "Your amount" */
body.hv-theme .hv-bundle__custom-title { color: #0F1B3D; font-size: 16px; font-weight: var(--hv-fw-bold, 700); white-space: nowrap; }
body.hv-theme .hv-bundle__custom-sub { color: #5B6478; font-size: 14px; }

/* ---------------------------------------------------------------------------
   OFFER design (.hv-bundles--offer — a "Save %" is set on the product):
   ticket icon in the title, green "Save X%" tag in each card's top-right
   corner, number / "tickets" / price stacked, custom card shows its price.
   --------------------------------------------------------------------------- */
/* Ticket icon to the left of the title (both designs) */
body.hv-theme .hv-bundles__title { display: inline-flex !important; align-items: center; gap: 10px; }
body.hv-theme .hv-bundles__icon { flex: 0 0 auto; display: block; color: var(--hv-primary, #065BE0); }

body.hv-theme .hv-bundles--offer button.hv-bundle {
  position: relative; overflow: hidden;
  justify-content: flex-end; gap: 4px; min-height: 96px;
  padding: 26px 16px 12px !important;
}
body.hv-theme .hv-bundles--offer button.hv-bundle.is-active { padding: 25.5px 15.5px 11.5px !important; }

body.hv-theme .hv-bundles--offer .hv-bundle__qty { flex-direction: column; align-items: flex-start; gap: 2px; }
body.hv-theme .hv-bundles--offer .hv-bundle__qty b { font-size: 24px; }
body.hv-theme .hv-bundles--offer .hv-bundle__price { margin-top: 4px; }

/* Green tag hugging the card's top-right corner */
body.hv-theme .hv-bundle__save {
  position: absolute; top: 0; right: 0;
  padding: 4px 10px 5px 12px;
  background: #E3F4E8; color: #17703A;
  font-size: 12px; font-weight: var(--hv-fw-bold, 700); line-height: 1.2; letter-spacing: 0; white-space: nowrap;
  border-bottom-left-radius: 12px;
}

/* Custom card: "1 ticket" / "£3.99", vertically centred */
body.hv-theme .hv-bundles--offer button.hv-bundle--custom { justify-content: center; padding-top: 12px !important; }
body.hv-theme .hv-bundles--offer button.hv-bundle--custom.is-active { padding-top: 11.5px !important; }
body.hv-theme .hv-bundles--offer .hv-bundle--custom .hv-bundle__custom-sub {
  color: var(--hv-primary, #065BE0); font-size: 15px; font-weight: var(--hv-fw-bold, 700); font-variant-numeric: tabular-nums;
}
body.hv-theme .hv-bundles--offer .hv-bundle--custom.is-empty-sub .hv-bundle__custom-sub { display: none; }
body.hv-theme .hv-bundle__save[hidden] { display: none !important; }

/* Bundle bigger than this customer can still buy → greyed out */
body.hv-theme .hv-bundles button.hv-bundle.is-over,
body.hv-theme .hv-bundles button.hv-bundle:disabled {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
  background: #F6F7F9 !important; border-color: #E3E7EE !important;
}
body.hv-theme .hv-bundles button.hv-bundle.is-over .hv-bundle__save { filter: grayscale(1); }
body.hv-theme .hv-bundle__over { color: #8A93A6; font-size: 12.5px; font-weight: var(--hv-fw-bold, 700); }

/* Original price struck through before the discounted one: "£19.95 £18.95" */
body.hv-theme .hv-bundle__price,
body.hv-theme .hv-bundles--offer .hv-bundle--custom .hv-bundle__custom-sub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
body.hv-theme .hv-bundle__was {
  color: #8A93A6; font-size: 13px; font-weight: var(--hv-fw-regular, 400);
  text-decoration: line-through; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums;
}
body.hv-theme .hv-bundle__now { color: var(--hv-primary, #065BE0); font-weight: var(--hv-fw-bold, 700); }
@media (max-width: 400px) {
  body.hv-theme .hv-bundle__was { font-size: 11.5px; }
}

/* Small phones */
@media (max-width: 400px) {
  body.hv-theme .hv-bundles__grid { gap: 8px; }
  body.hv-theme .hv-bundles button.hv-bundle { padding: 10px !important; min-height: 68px; }
  body.hv-theme .hv-bundles button.hv-bundle.is-active { padding: 9.5px !important; }
  body.hv-theme .hv-bundle__qty b { font-size: 19px; }
  body.hv-theme .hv-bundle__qty span,
  body.hv-theme .hv-bundle__custom-sub { font-size: 12px; }
  body.hv-theme .hv-bundle__price,
  body.hv-theme .hv-bundle__custom-title { font-size: 14px; }
  body.hv-theme .hv-bundles--offer button.hv-bundle { min-height: 88px; padding: 24px 10px 10px !important; }
  body.hv-theme .hv-bundles--offer button.hv-bundle.is-active { padding: 23.5px 9.5px 9.5px !important; }
  body.hv-theme .hv-bundles--offer .hv-bundle__qty b { font-size: 20px; }
  body.hv-theme .hv-bundle__save { font-size: 10.5px; padding: 3px 7px 4px 8px; border-bottom-left-radius: 10px; }
}
