/* GW Denominations 2: premium pack tiles, "Your order" card (desktop) / bottom bar (mobile).
   Uses the v2 tokens from the gw-kadence child theme (style.css); every token has a fallback, so it also works on another theme.
   The desktop column placement of the card is the theme's job (gw-kadence shop.css). */

/* WooCommerce's select stays in the form for its variation logic; the radios replace it on screen. */
.gw-denoms-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; }
.variations_form table.variations:has(.denoms),
.variations_form table.variations:has(.denoms) > tbody,
.variations_form table.variations:has(.denoms) tr,
.variations_form table.variations:has(.denoms) td { display: block; width: 100%; padding: 0; margin: 0; border: 0 !important; background: none; }
.variations_form table.variations tr:has(.denoms) > th { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }
.variations_form:has(.denoms) .reset_variations { display: none !important; }

.denoms, .gw-order { --d-text: var(--gw-text, #EEF1FA); --d-text-2: var(--gw-text-2, #D3D8EA); --d-muted: var(--gw-muted, #A3ACC9); --d-line: var(--gw-line-2, rgba(255, 255, 255, .14)); --d-glow: var(--gw-glow, #7C5CFF); --d-cta: var(--gw-cta, #E11D48); --d-gold: var(--gw-gold, #FFB020); --d-r: var(--gw-r, 14px); }
.denoms *, .gw-order * { box-sizing: border-box; }
.denoms { box-sizing: border-box; flex: 1 1 100%; width: 100%; border: 0; margin: 0 0 var(--s4, 16px); padding: 0; min-width: 0; background: none; text-transform: none; letter-spacing: normal; }
.denoms legend { display: block; font-family: var(--font-head, inherit); font-weight: 700; font-size: 1.125rem; color: var(--d-text); margin: 0 0 var(--s3, 12px); padding: 0; border: 0; width: auto; float: none; }
.denoms__sub { display: block; margin-top: 2px; font: 500 var(--fs-xs, .8125rem)/1.3 var(--font-body, inherit); color: var(--d-muted); }
.denom-group + .denom-group { margin-top: var(--s4, 16px); }
.denom-group__title { margin: 0 0 var(--s2, 8px); font: 700 var(--fs-2xs, .75rem)/1.2 var(--font-body, inherit); letter-spacing: .12em; text-transform: uppercase; color: var(--d-muted); }
.denom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 10px; } /* room for the badges */
@media (min-width: 600px) { .denom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.denoms--options .denom-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }

.denom { position: relative; display: block; cursor: pointer; margin: 0; font-weight: 400; -webkit-tap-highlight-color: transparent; }
/* 2.1: another plugin's CSS (Portallio frontend.css) forces ".variations_form label {display:inline-block; margin-bottom:8px; color; 15px} !important" onto the tiles */
.variations_form .denoms label.denom { display: block !important; margin: 0 !important; color: inherit !important; font-size: 1rem !important; font-weight: 400 !important; }
.denom input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.denom .box { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 84px; padding: 14px 36px 12px 14px; color: var(--d-text-2); background: radial-gradient(120% 90% at 0 0, rgba(124, 92, 255, .10), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--gw-surface, #121831); border: 1px solid var(--d-line); border-radius: var(--d-r); box-shadow: 0 1px 2px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .2s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s, background .2s; }
.denoms--options .denom .box { min-height: 52px; padding: 10px 14px; align-items: center; text-align: center; }
.denom .amt { font-family: var(--font-head, inherit); font-weight: 700; font-size: 1.0625rem; color: var(--d-text); line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (min-width: 600px) { .denoms--packs .denom .amt { font-size: 1.1875rem; } }
.denom .bonus { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--d-gold); line-height: 1.3; }
.denom .bdt { margin-top: 2px; font-size: .9375rem; font-weight: 600; color: var(--d-text-2); font-variant-numeric: tabular-nums; line-height: 1.3; }
.denom .bdt:empty { display: none; }
.denom .bdt del { color: var(--gw-subtle, #8C95B5); font-weight: 500; font-size: .8125rem; margin-right: 4px; opacity: 1; }
.denom .bdt ins { text-decoration: none; color: var(--d-gold); background: none; }
.denom .dtag { position: absolute; z-index: 2; top: -10px; left: 12px; height: 20px; padding: 0 8px; border-radius: 999px; font: 800 10.5px/20px var(--font-body, inherit); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.denom .dtag--pop { background: var(--gw-grad-brand, linear-gradient(135deg, #4F46E5, #7C5CFF)); color: #fff; box-shadow: 0 6px 16px -6px rgba(124, 92, 255, .8); }
.denom .dtag--best { background: var(--gw-grad-gold, linear-gradient(135deg, #FFC94D, #FFB020 60%, #F59E0B)); color: #1A1300; box-shadow: 0 6px 16px -6px rgba(255, 176, 32, .7); }
.denom.has-badge .box { padding-top: 18px; }
.denom .tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--d-line); transition: background .2s, border-color .2s, transform .2s; }
.denom .tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.4); opacity: 0; transition: transform .2s, opacity .2s; }
.denoms--options .denom .tick { display: none; }

.denom:hover .box { border-color: rgba(124, 92, 255, .5); transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 12px 28px -12px rgba(124, 92, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.denom input:checked + .box { border-color: var(--d-glow); background: radial-gradient(120% 100% at 0 0, rgba(124, 92, 255, .32), transparent 65%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)), var(--gw-surface-2, #1A2142); box-shadow: 0 0 0 1px var(--d-glow), 0 14px 36px -10px rgba(124, 92, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .08); }
.denom input:checked + .box .tick { background: var(--gw-grad-brand, linear-gradient(135deg, #4F46E5, #7C5CFF)); border-color: transparent; }
.denom input:checked + .box .tick::after { opacity: 1; transform: rotate(45deg) scale(1); }
.denom input:checked + .box .amt { color: #fff; }
.denom input:focus-visible + .box { outline: 2px solid var(--gw-link, #A99BFF); outline-offset: 3px; }
.denom input:disabled + .box { background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .12); box-shadow: none; transform: none; cursor: not-allowed; }
.denom input:disabled + .box .amt, .denom input:disabled + .box .bonus { color: var(--gw-subtle, #8C95B5); }
.denom input:disabled + .box .bdt { color: var(--gw-danger-text, #FCA5A5); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.denom input:disabled + .box .tick { display: none; }
.denom.is-oos, .denom.is-oos input { cursor: not-allowed; }

/* The card/bar replaces the form's own buttons when JS runs (the real buttons stay in the form: validation, Enter key, no-JS). */
form.cart.gw-js .single_add_to_cart_button, form.cart.gw-js .gw-addonly--main { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; box-shadow: none !important; }
.gw-addonly { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: var(--gw-r, 14px); border: 1px solid var(--gw-line-2, rgba(255, 255, 255, .14)); background: var(--gw-glass-2, rgba(255, 255, 255, .07)); color: var(--gw-text, #EEF1FA); font: 700 1rem/1.1 var(--font-body, inherit); cursor: pointer; }
.gw-addonly:hover { background: var(--gw-glass-3, rgba(255, 255, 255, .11)); color: #fff; }
.gw-addonly:not(.gw-addonly--main) { min-height: 44px; padding: 0; border: 0; background: none; color: var(--gw-link, #A99BFF); font-size: var(--fs-sm, .875rem); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gw-addonly:not(.gw-addonly--main):hover { color: var(--gw-link-hover, #C9BFFF); background: none; }

/* "Your order" card (desktop) */
.gw-order { position: relative; margin: var(--s4, 16px) 0; padding: var(--s5, 20px); color: var(--d-text-2); background: radial-gradient(140% 70% at 100% 0, rgba(124, 92, 255, .22), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--gw-surface, #121831); border: 1px solid var(--d-line); border-radius: var(--gw-r-lg, 18px); box-shadow: var(--gw-sh-3, 0 8px 20px rgba(0, 0, 0, .35), 0 28px 64px -16px rgba(0, 0, 0, .75)); text-align: left; text-transform: none; letter-spacing: normal; }
.gw-order__title { margin: 0 0 var(--s3, 12px); font: 800 var(--fs-2xs, .75rem)/1 var(--font-body, inherit); letter-spacing: .14em; text-transform: uppercase; color: var(--gw-link, #A99BFF); }
.gw-order__prod { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s4, 16px); font-weight: 700; color: var(--d-text); line-height: 1.3; font-size: var(--fs-sm, .875rem); }
.gw-order__prod img { width: 52px !important; height: 52px !important; flex: none; object-fit: cover; border-radius: 12px; margin: 0 !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 20px -8px rgba(124, 92, 255, .6); }
.gw-order__rows { margin: 0 0 var(--s4, 16px); padding: var(--s3, 12px) 0; border-top: 1px solid var(--gw-line, rgba(255, 255, 255, .08)); border-bottom: 1px solid var(--gw-line, rgba(255, 255, 255, .08)); display: grid; gap: 8px; }
.gw-order__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gw-order__rows dt { margin: 0; font-size: var(--fs-xs, .8125rem); color: var(--d-muted); font-weight: 500; }
.gw-order__rows dd { margin: 0; font-size: var(--fs-sm, .875rem); color: var(--d-text); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.gw-buybar__in { display: flex; flex-direction: column; gap: 12px; }
.gw-buybar__what { min-width: 0; }
.gw-buybar__sum { display: none; font-size: 12px; color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-buybar__price { display: block; font-family: var(--font-head, inherit); font-size: 1.875rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.gw-buybar__price del { font-size: .55em; color: var(--gw-subtle, #8C95B5); font-weight: 600; margin-right: 6px; }
.gw-buybar__price ins { text-decoration: none; background: none; color: #fff; }
.gw-order .gw-buybar__btn, .gw-order .gw-buybar__add { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 0; padding: 0 20px; border-radius: var(--d-r); font: 700 1.0625rem/1.1 var(--font-body, inherit); cursor: pointer; transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, background .2s; }
.gw-order .gw-buybar__btn { border: 0; color: #fff; background: var(--gw-grad-cta, linear-gradient(180deg, #E8264F 0%, #E11D48 55%, #CC1540 100%)); background-color: var(--d-cta); box-shadow: var(--gw-sh-cta, 0 10px 26px -10px rgba(225, 29, 72, .75), inset 0 1px 0 rgba(255, 255, 255, .18)); }
.gw-order .gw-buybar__btn:hover { background: var(--gw-cta-hover, #C8143F); color: #fff; transform: translateY(-1px); }
.gw-order .gw-buybar__add { border: 1px solid var(--d-line); color: var(--d-text); background: var(--gw-glass-2, rgba(255, 255, 255, .07)); box-shadow: none; }
.gw-order .gw-buybar__add:hover { background: var(--gw-glass-3, rgba(255, 255, 255, .11)); color: #fff; }
.gw-order .gw-buybar__btn:focus-visible, .gw-order .gw-buybar__add:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gw-order__notes { list-style: none; margin: var(--s4, 16px) 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-xs, .8125rem); color: var(--d-muted); }
.gw-order__notes li { display: flex; gap: 8px; align-items: flex-start; margin: 0; line-height: 1.4; }
.gw-order__notes li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: rgba(34, 197, 94, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234ADE80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.gw-order__notes b { color: var(--d-text); }

/* Mobile/tablet: the card becomes a fixed bottom bar (price + buttons only). */
@media (max-width: 1023.98px) {
  .gw-order { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px var(--gw-gutter, 16px) calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-width: 1px 0 0; background: rgba(13, 18, 36, .97); box-shadow: 0 -12px 32px -8px rgba(0, 0, 0, .7); }
  .gw-order::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .7), rgba(225, 29, 72, .6), transparent); }
  .gw-order__title, .gw-order__prod, .gw-order__rows, .gw-order__notes { display: none; }
  .gw-buybar__in { flex-direction: row; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; }
  .gw-buybar__what { flex: 1; }
  .gw-buybar__sum { display: block; }
  .gw-buybar__price { font-size: 1.25rem; }
  .gw-order .gw-buybar__btn { width: auto; flex: none; min-width: 132px; min-height: 52px; }
  .gw-order .gw-buybar__add { width: auto; flex: none; min-height: 52px; padding: 0 14px; font-size: .9375rem; }
  body.gw-has-buybar { padding-bottom: 84px; }
}
@media (max-width: 480px) { .gw-order--physical .gw-buybar__price { font-size: 1.0625rem; } .gw-order--physical .gw-buybar__sum { display: none; } }
@media (max-width: 380px) { .gw-order .gw-buybar__btn { min-width: 112px; padding: 0 14px; } .gw-order--physical .gw-buybar__add { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .denom .box, .denom .tick, .denom .tick::after, .gw-order .gw-buybar__btn { transition: none; } .denom:hover .box { transform: none; } }
