/* Bodyfirst gift cards. Same design as the theme lab mock; uses the theme's colour tokens with brand fallbacks. */

.bf-gc-product {
  --gc-blue: var(--c-primary, #0F75BC);
  --gc-link: var(--c-link, #0F75BC);
  --gc-sky: var(--c-secondary, #05ABEF);
  --gc-grad: var(--gradient, linear-gradient(135deg, #0F75BC 0%, #05ABEF 100%));
  --gc-soft: var(--primary-soft, #EAF4FB);
  --gc-surface: var(--c-surface, #F4F6F8);
  --gc-border: var(--c-border, #E8E8E9);
  --gc-heading: var(--c-heading, #111111);
  --gc-text: var(--c-text, #666666);
  --gc-bg: var(--c-bg, #FFFFFF);
  --gc-radius: var(--radius, 12px);
  --gc-radius-sm: var(--radius-sm, 8px);
  --gc-pill: var(--btn-radius, 999px);
}

/* The theme's photo gallery, quantity box, stock line and delivery perks don't apply to an emailed card. */
.bf-gc-product .woocommerce-product-gallery,
.bf-gc-product form.cart .quantity,
.bf-gc-product .summary .stock,
.bf-gc-product .summary .pdp-perks { display: none !important; }

/* ---------- The card ---------- */

.bf-gc-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 4px;
  aspect-ratio: 1.586; padding: 22px 24px; border-radius: 18px;
  background: var(--gradient, linear-gradient(135deg, #0F75BC 0%, #05ABEF 100%)); color: #FFFFFF;
  box-shadow: 0 18px 40px -18px rgba(15, 117, 188, 0.7), 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: left; line-height: 1.3;
}
.bf-gc-card::before, .bf-gc-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 22px solid rgba(255, 255, 255, 0.09); }
.bf-gc-card::before { width: 260px; height: 260px; right: -70px; top: -90px; }
.bf-gc-card::after { width: 150px; height: 150px; right: 60px; bottom: -95px; border-width: 14px; }
.bf-gc-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.bf-gc-ring { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); flex: none; }
.bf-gc-card .bf-gc-ring img { width: 70% !important; height: 70% !important; object-fit: contain; margin: 0; border-radius: 0; }
.bf-gc-card-kicker { padding: 4px 10px; border-radius: 999px; background: var(--c-accent, #A6FF00); color: var(--on-accent, #111111); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bf-gc-card-amount { font-family: var(--font-heading, inherit); font-size: clamp(40px, 6vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: #FFFFFF; }
.bf-gc-card-for { font-weight: 600; font-size: 16px; }
.bf-gc-card-from:empty, .bf-gc-card-msg:empty { display: none; }
.bf-gc-card-from { font-size: 13px; opacity: 0.9; }
.bf-gc-card-msg { font-size: 13px; opacity: 0.9; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 85%; }
.bf-gc-card-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.9; }

/* Mini card: cart drawer, full cart and checkout thumbnails. */
.bf-gc-card.is-small { width: 100%; height: auto; aspect-ratio: 1.5; padding: 7px 8px; border-radius: 8px; gap: 0; justify-content: space-between; box-shadow: none; }
.bf-gc-card.is-small::before { width: 70px; height: 70px; border-width: 7px; right: -24px; top: -26px; }
.bf-gc-card.is-small::after, .bf-gc-card.is-small .bf-gc-card-kicker { display: none; }
.bf-gc-card.is-small .bf-gc-card-top { margin: 0; }
.bf-gc-card.is-small .bf-gc-ring { width: 22px; height: 22px; box-shadow: none; }
.bf-gc-card.is-small .bf-gc-card-amount { font-size: 19px; }
.cart-thumb:has(.bf-gc-card), .product-thumbnail a:has(.bf-gc-card) { padding: 0 !important; border: 0 !important; background: none !important; display: flex !important; align-items: flex-start; }
.product-thumbnail .bf-gc-card.is-small { width: 84px; }

/* ---------- Product page ---------- */

.bf-gc-stage-col { align-self: stretch; min-width: 0; }
.bf-gc-stage { position: sticky; top: 130px; display: grid; gap: 14px; justify-items: center; padding: 48px 28px; border-radius: var(--gc-radius); background: var(--gc-surface); border: 1px solid var(--gc-border); }
.bf-gc-stage-card { width: 100%; max-width: 440px; }
.bf-gc-stage-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--gc-text); }
.bf-gc-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bf-gc-stage-note .bf-gc-icon { color: var(--gc-link); }

.bf-gc-from { font-size: 0.6em; font-weight: 600; color: var(--gc-text); margin-right: 4px; }

.bf-gc-form { flex-basis: 100%; width: 100%; display: grid; gap: 12px; }
.bf-gc-step { margin: 0; padding: 16px 18px 18px; min-width: 0; border: 1px solid color-mix(in srgb, var(--gc-blue) 22%, transparent); border-radius: 16px; background: var(--gc-soft); }
.bf-gc-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; font-weight: 700; font-size: 15px; color: var(--gc-heading); }
.bf-gc-step legend b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gc-blue); color: var(--on-primary, #FFFFFF); font-size: 12.5px; }
.bf-gc-step legend + * { clear: both; }

/* Radio buttons shown as pills and cards (the real radios stay for keyboards and screen readers). */
.bf-gc-form input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bf-gc-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-gc-pill span { display: inline-flex; align-items: center; min-width: 64px; justify-content: center; padding: 9px 16px; border-radius: var(--gc-pill); border: 1px solid var(--gc-border); background: var(--gc-bg); color: var(--gc-heading); font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.bf-gc-pill span:hover { border-color: var(--gc-sky); }
.bf-gc-pill input:checked + span { border-color: var(--gc-blue); background: var(--gc-blue); color: var(--on-primary, #FFFFFF); }
.bf-gc-form input:focus-visible + span { outline: 2px solid var(--gc-sky); outline-offset: 2px; }

.bf-gc-custom { display: grid; gap: 6px; margin-top: 14px; font-size: 13.5px; }
.bf-gc-custom label { font-weight: 600; color: var(--gc-heading); }
.bf-gc-euro { display: flex; align-items: center; max-width: 180px; border: 1px solid var(--gc-border); border-radius: var(--gc-radius-sm); background: var(--gc-bg); overflow: hidden; }
.bf-gc-euro b { padding: 0 4px 0 14px; font-size: 18px; color: var(--gc-heading); }
.bf-gc-form .bf-gc-euro input { flex: 1; min-width: 0; width: 100%; border: 0 !important; box-shadow: none !important; padding: 11px 12px 11px 2px !important; font-size: 18px !important; font-weight: 600; background: transparent !important; color: var(--gc-heading); }
.bf-gc-euro input:focus { outline: none; }
.bf-gc-euro:focus-within { border-color: var(--gc-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc-blue) 18%, transparent); }
.bf-gc-euro:has([aria-invalid]) { border-color: #C62828; }

.bf-gc-who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-gc-who label { margin: 0; cursor: pointer; }
.bf-gc-who label > span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: var(--gc-radius-sm); border: 1px solid var(--gc-border); background: var(--gc-bg); color: var(--gc-text); }
.bf-gc-who strong { color: var(--gc-heading); font-size: 15px; }
.bf-gc-who small { font-size: 12.5px; }
.bf-gc-who label > span:hover { border-color: var(--gc-sky); }
.bf-gc-who input:checked + span { border-color: var(--gc-blue); background: var(--gc-blue); color: var(--on-primary, #FFFFFF); }
.bf-gc-who input:checked + span strong { color: inherit; }
.bf-gc-me-note { margin: 12px 0 0; font-size: 13.5px; }

.bf-gc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.bf-gc-fields p { display: grid; gap: 5px; margin: 0; align-content: start; }
.bf-gc-fields label { font-size: 13.5px; font-weight: 600; color: var(--gc-heading); }
.bf-gc-fields label em { font-style: normal; font-weight: 400; color: var(--gc-text); }
.bf-gc-fields .bf-gc-wide { grid-column: 1 / -1; }
.bf-gc-fields input, .bf-gc-fields textarea { width: 100%; box-sizing: border-box; }
.bf-gc-fields textarea { resize: vertical; }
.bf-gc-form [aria-invalid] { border-color: #C62828 !important; }
.bf-gc-field-err { color: #C62828; font-weight: 500; font-size: 12.5px; }
.bf-gc-count { font-weight: 400; color: var(--gc-text); font-size: 12px; text-align: right; }

/* Show the custom amount box / recipient fields only when chosen (browsers without :has show both). */
@supports selector(:has(*)) {
  .bf-gc-form:not(:has([name="bf_gc_amount"][value="custom"]:checked)) .bf-gc-custom,
  .bf-gc-form:not(:has([name="bf_gc_to"][value="them"]:checked)) .bf-gc-fields,
  .bf-gc-form:has([name="bf_gc_to"][value="them"]:checked) .bf-gc-me-note { display: none; }
}

.bf-gc-product form.cart .single_add_to_cart_button { flex: 1 1 100%; font-size: 16px; }

.bf-gc-facts { list-style: none; margin: 0 0 26px; padding: 18px 20px; border-radius: var(--gc-radius); background: var(--gc-surface); display: grid; gap: 10px; font-size: 14px; }
.bf-gc-facts li { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.bf-gc-facts .bf-gc-icon { width: 20px; height: 20px; color: var(--gc-link); margin-top: 1px; }
.bf-gc-facts strong { color: var(--gc-heading); }

.bf-gc-more { grid-column: 1 / -1; display: grid; gap: 40px; margin: 8px 0 24px; }
.bf-gc-eyebrow { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gc-link); }
.bf-gc-how h2, .bf-gc-faq h2 { margin: 0 0 16px; }
.bf-gc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bf-gc-steps li { display: grid; gap: 6px; align-content: start; margin: 0; padding: 22px; border-radius: var(--gc-radius); background: var(--gc-surface); border: 1px solid var(--gc-border); }
.bf-gc-steps b { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 50%; background: var(--gc-grad); color: #FFFFFF; font-size: 15px; }
.bf-gc-steps strong { color: var(--gc-heading); font-size: 17px; }
.bf-gc-steps span { font-size: 14.5px; }
.bf-gc-faq { max-width: 820px; border-top: 1px solid var(--gc-border); }
.bf-gc-faq h2 { margin-top: 28px; }
.bf-gc-faq details { border-bottom: 1px solid var(--gc-border); }
.bf-gc-faq summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-weight: 600; color: var(--gc-heading); list-style: none; }
.bf-gc-faq summary::-webkit-details-marker { display: none; }
.bf-gc-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.bf-gc-faq details[open] summary::after { content: "–"; }
.bf-gc-faq details p { margin: 0 0 18px; font-size: 15px; }

/* ---------- Cart: Try your luck banner for a gift-card-only cart ---------- */

.luck-strip.is-off { background: var(--c-surface, #F4F6F8) !important; color: var(--c-text, #666666) !important; }

/* ---------- Thank-you page and My account ---------- */

.bf-gc-order { margin: 24px 0; padding: 20px 22px; border-radius: var(--radius, 12px); background: var(--primary-soft, #EAF4FB); }
.bf-gc-order h2 { margin: 0 0 10px; font-size: 20px; }
.bf-gc-order ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bf-gc-order li { display: flex; gap: 12px; align-items: baseline; margin: 0; }
.bf-gc-order-amt { flex: none; min-width: 52px; padding: 2px 10px; border-radius: 999px; background: var(--c-primary, #0F75BC); color: #FFFFFF; font-weight: 700; font-size: 13px; text-align: center; }

@media (max-width: 900px) {
  .bf-gc-stage { position: static; padding: 28px 18px; }
  .bf-gc-steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bf-gc-fields, .bf-gc-who { grid-template-columns: 1fr; }
  .bf-gc-card { padding: 18px; }
}
