/* =========================================================================
   Fitshop — strona δωροκάρτας (gift_certificates.add): hero + formularz + regulamin.
   Ładowane tylko na tej stronie (<link> w szablonie), poza kompilacją LESS
   (clamp()/var()/cqw w calc() — LESS by je przeliczał).
   Font: Manrope (OFL), hostowany lokalnie — bez Google Fonts (RODO/zgody).
   ========================================================================= */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
    src: url(../../../media/fonts/manrope/manrope-greek.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
    src: url(../../../media/fonts/manrope/manrope-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
    src: url(../../../media/fonts/manrope/manrope-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ======================= HERO (1:1 z zaakceptowanego landingu) ======================= */


.gcl {
    --gcl-bg: #FAF8F7;
    --gcl-navy: #101D30;
    --gcl-red: #E60023;
    --gcl-red-dark: #C4001E;
    --gcl-muted: #606875;
    --gcl-text: #47505E;
    --gcl-line: #DCD9DD;
    --gcl-white: #FFFFFF;

    position: relative;
    overflow: hidden;
    background: var(--gcl-bg);
    color: var(--gcl-navy);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: clamp(32px, 4.4vw, 80px);
    padding-bottom: clamp(32px, 4.4cqw, 80px);
}

.gcl *,
.gcl *::before,
.gcl *::after { box-sizing: border-box; }

/* subtelne, jasne łuki w tle (jak w referencji) — bez mocnych gradientów */
.gcl__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(140% 100% at 118% 8%, rgba(255, 255, 255, .55) 0 40%, rgba(255, 255, 255, 0) 40.4%),
        radial-gradient(110% 80% at 112% 118%, rgba(238, 233, 234, .55) 0 34%, rgba(238, 233, 234, 0) 34.4%);
}

/* ------------------------------------------------------------------ górna część */
.gcl__top {
    position: relative;
    display: grid;
    grid-template-columns: 39.9% 60.1%;
    align-items: start;
}

.gcl__text {
    padding: 11.75vw 0 0 6vw;
    padding: 11.75cqw 0 0 6cqw;
    position: relative;
    z-index: 2;
}

.gcl__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(44px, 5.93vw, 110px);
    font-size: clamp(44px, 5.93cqw, 110px);
    line-height: .98;
    letter-spacing: -.035em;
}
.gcl__title-1,
.gcl__title-2 { display: block; }
.gcl__title-1 { color: var(--gcl-navy); }
.gcl__title-2 { color: var(--gcl-red); }

.gcl__lead {
    margin: .9vw 0 0;
    margin: .9cqw 0 0;
    max-width: 28vw;
    max-width: 28cqw;
    font-weight: 500;
    font-size: clamp(18px, 2.2vw, 41px);
    font-size: clamp(18px, 2.2cqw, 41px);
    line-height: 1.24;
    letter-spacing: -.01em;
    color: var(--gcl-text);
}

.gcl__benefits {
    display: flex;
    align-items: center;
    margin: 2.85vw 0 0;
    margin: 2.85cqw 0 0;
    padding: 0;
    list-style: none;
}
.gcl__benefits li {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.05vw, 20px);
    gap: clamp(10px, 1.05cqw, 20px);
    padding: 0 clamp(14px, 1.9vw, 34px);
    padding: 0 clamp(14px, 1.9cqw, 34px);
    border-left: 1px solid var(--gcl-line);
    font-size: clamp(13px, 1.13vw, 21px);
    font-size: clamp(13px, 1.13cqw, 21px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--gcl-navy);
}
.gcl__benefits li:first-child { padding-left: 0; border-left: 0; }
.gcl__ico {
    flex: 0 0 auto;
    width: clamp(26px, 2.3vw, 42px);
    width: clamp(26px, 2.3cqw, 42px);
    height: clamp(26px, 2.3vw, 42px);
    height: clamp(26px, 2.3cqw, 42px);
    fill: none;
    stroke: var(--gcl-navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gcl__ico--wide { width: clamp(32px, 2.8vw, 52px); }

/* ------------------------------------------------------------------ GiftCard */
.gc-visual {
    --gc-progress: .2632; /* nadpisywane z JS: (amount - min) / (max - min) */
    position: relative;
    width: 100%;
    aspect-ratio: 1054 / 700;
    margin-top: 2.28vw;
    margin-top: 2.28cqw;
    user-select: none;
    -webkit-user-select: none;
}

.gc-hand {
    position: absolute;
    left: 3.13%;
    top: 51.7%;
    width: 96.97%;
    height: auto;
    pointer-events: none;
}

/* cień karty na dłoni — słabnie i rozmywa się, gdy karta się unosi */
.gc-shadow {
    position: absolute;
    left: 14%;
    top: 57.5%;
    width: 66%;
    height: 13%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(70, 30, 18, .62), rgba(70, 30, 18, 0));
    transform: rotate(-6deg) scale(calc(.92 + var(--gc-progress) * .14));
    opacity: calc(.6 + var(--gc-progress) * .4);
    filter: blur(calc(8px + var(--gc-progress) * 8px));
    pointer-events: none;
}

/* warstwa karty + kokardy — to ona się unosi (translate3d + rotate wg postępu) */
.gc-float {
    position: absolute;
    inset: 0;
    transform-origin: 44% 43%;
    /* 65 px i 3° w skali referencji: 65 / 700 = 9.29 % wysokości sceny */
    /* referencja pokazuje stan dla €150 (postęp .2632) — w tym punkcie warstwy leżą dokładnie jak na projekcie */
    transform: translate3d(0, calc((var(--gc-progress) - .2632) * -9.29%), 0) rotate(calc((var(--gc-progress) - .2632) * -3deg));
    transition: transform .12s linear;
    will-change: transform;
}

.gc-card {
    position: absolute;
    left: 42%;
    top: 42.1%;
    width: 67.6%;
    aspect-ratio: 715 / 362;
    container-type: inline-size;
    border-radius: 5.4cqw;
    overflow: hidden;
    color: var(--gcl-white);
    background:
        radial-gradient(120% 140% at 0% 0%, #1d2d48 0%, rgba(29, 45, 72, 0) 55%),
        linear-gradient(170deg, #142339 0%, #101D30 55%, #0c1727 100%);
    transform: translate(-50%, -50%) perspective(1700px) rotateY(-12deg) rotateX(4deg) rotate(-7.8deg);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, .06) inset,
        0 40px 60px -28px rgba(16, 29, 48, .55),
        0 18px 26px -18px rgba(16, 29, 48, .5);
}

/* czerwony pas w prawym dolnym rogu (jak w referencji), matowy */
.gc-card__sweep {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(121deg,
            rgba(230, 0, 35, 0) 52%,
            rgba(230, 0, 35, .35) 60%,
            rgba(230, 0, 35, .95) 70%,
            rgba(205, 0, 30, .92) 77%,
            rgba(120, 6, 25, .85) 82%,
            rgba(16, 29, 48, 0) 88%);
}

/* karta: na górze „Δωροκάρτα”, pod nim „Αξία” / „Value” z czerwoną kreską, kwota duża po prawej */
.gc-card__logo {
    position: absolute;
    left: 10.2%;
    top: 14.5%;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 7.6cqw;
    letter-spacing: -.02em;
    line-height: 1;
    white-space: nowrap;
}
.gc-card__value {
    position: absolute;
    left: 10.4%;
    top: 46%;
    font-weight: 700;
    font-size: 4.6cqw;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
}
.gc-card__value::after {
    content: "";
    position: absolute;
    left: .03em;
    top: 190%;
    width: 2.4em;
    height: .26em;
    border-radius: .13em;
    background: var(--gcl-red);
}

.gc-card__amount {
    position: absolute;
    right: 12.5%;
    top: 49.5%;
    font-weight: 800;
    font-size: 17.6cqw;
    line-height: 1;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.gc-card__amount.is-bump { animation: gc-bump .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes gc-bump {
    0% { transform: translateY(8%); opacity: .45; }
    100% { transform: none; opacity: 1; }
}

/* ---------------- efekty przy przesuwaniu ---------------- */
.gc-visual { --gc-energy: 0; }

/* złote światło spod dolnej krawędzi karty — jasność = prędkość przesuwania */
.gc-glow {
    position: absolute;
    left: 45.5%;
    top: 68%;
    width: 78%;
    height: 22%;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-7deg) scale(calc(.8 + var(--gc-energy) * .35));
    background: radial-gradient(closest-side,
        rgba(255, 244, 200, 1) 0%,
        rgba(255, 196, 40, .85) 30%,
        rgba(245, 150, 0, .45) 58%,
        rgba(230, 0, 35, .12) 80%,
        rgba(230, 0, 35, 0) 100%);
    opacity: calc(var(--gc-energy) * 1.1);
    filter: blur(5px);
    pointer-events: none;
}

/* promienie rozbłysku spod karty */
.gc-rays {
    position: absolute;
    left: 45.5%;
    top: 69%;
    width: 120%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--gc-progress) * 40deg)) scale(calc(.55 + var(--gc-energy) * .45));
    background: repeating-conic-gradient(from 0deg,
        rgba(255, 200, 50, .55) 0deg 3deg,
        rgba(255, 200, 50, 0) 3deg 14deg);
    -webkit-mask: radial-gradient(closest-side, #000 6%, rgba(0, 0, 0, .5) 26%, transparent 52%);
    mask: radial-gradient(closest-side, #000 6%, rgba(0, 0, 0, .5) 26%, transparent 52%);
    opacity: calc(var(--gc-energy) * var(--gc-energy) * .9);
    pointer-events: none;
}

.gc-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gc-spark {
    position: absolute;
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 22%, var(--c) 45%);
    box-shadow: 0 0 8px 2px var(--c), 0 0 18px 4px rgba(245, 150, 0, .45);
    animation: gc-spark var(--d) cubic-bezier(.15, .7, .3, 1) forwards;
    will-change: transform, opacity;
}
.gc-spark--star {
    border-radius: 0;
    box-shadow: none;
    background: var(--c);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    background: radial-gradient(circle, #fff 0 14%, var(--c) 36%);
    filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 2px rgba(160, 80, 0, .6));
}
@keyframes gc-spark {
    0%   { transform: translate(0, 0) scale(.3) rotate(0); opacity: 0; }
    12%  { opacity: 1; transform: translate(calc(var(--dx) * .15), calc(var(--dy) * .15)) scale(1.15) rotate(calc(var(--r) * .2)); }
    100% { transform: translate(var(--dx), calc(var(--dy) + 18px)) scale(.15) rotate(var(--r)); opacity: 0; }
}

/* odblask przesuwający się po karcie razem z suwakiem */
.gc-card::after {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background: linear-gradient(105deg,
        rgba(255, 255, 255, 0) 38%,
        rgba(255, 255, 255, .16) 47%,
        rgba(255, 255, 255, .28) 50%,
        rgba(255, 255, 255, .16) 53%,
        rgba(255, 255, 255, 0) 62%);
    transform: translateX(calc(var(--gc-progress) * 120% - 60%));
    opacity: calc(.25 + var(--gc-energy) * .75);
    pointer-events: none;
}

.gc-bow {
    position: absolute;
    left: 41.84%;
    top: 2.43%;
    width: 41.27%;
    height: auto;
    pointer-events: none;
}

/* ------------------------------------------------------------------ dolny pasek */
.gcl__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    margin-top: .2vw;
    margin-top: .2cqw;
    padding: 0 6vw;
    padding: 0 6cqw;
}

/* AmountSlider */
.as {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    min-width: 0;
}
.as-label {
    flex: 0 0 13.1vw;
    flex: 0 0 13.1cqw;
    padding-top: .3vw;
    padding-top: .3cqw;
    font-weight: 800;
    font-size: clamp(16px, 1.42vw, 26px);
    font-size: clamp(16px, 1.42cqw, 26px);
    letter-spacing: -.01em;
    color: var(--gcl-navy);
    line-height: 1.2;
}
.as-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 1.1vw;
    padding: 0 1.1cqw;
}
.as-track {
    --as-thumb: clamp(34px, 2.6vw, 48px);
    --as-thumb: clamp(34px, 2.6cqw, 48px);
    position: relative;
    height: var(--as-thumb);
    margin: -.2vw calc(var(--as-thumb) / -2 + 6px) 0 calc(var(--as-thumb) / -2 + 6px);
    margin: -.2cqw calc(var(--as-thumb) / -2 + 6px) 0 calc(var(--as-thumb) / -2 + 6px);
}
.as-input {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    width: 100%;
    height: var(--as-thumb);
    margin: 0;
    transform: translateY(-50%);
    background: transparent;
    cursor: pointer;
    touch-action: pan-y;
}
.as-input::-webkit-slider-runnable-track {
    height: clamp(8px, .68vw, 13px);
    height: clamp(8px, .68cqw, 13px);
    border-radius: 99px;
    background: linear-gradient(var(--gcl-red), var(--gcl-red)) 0 / var(--as-fill, 0%) 100% no-repeat, var(--gcl-line);
}
.as-input::-moz-range-track {
    height: clamp(8px, .68vw, 13px);
    height: clamp(8px, .68cqw, 13px);
    border-radius: 99px;
    background: var(--gcl-line);
}
.as-input::-moz-range-progress {
    height: clamp(8px, .68vw, 13px);
    height: clamp(8px, .68cqw, 13px);
    border-radius: 99px;
    background: var(--gcl-red);
}
.as-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: var(--as-thumb);
    height: var(--as-thumb);
    margin-top: calc((clamp(8px, .68vw, 13px) - var(--as-thumb)) / 2);
    margin-top: calc((clamp(8px, .68cqw, 13px) - var(--as-thumb)) / 2);
    border-radius: 50%;
    background: var(--gcl-white);
    border: 3px solid var(--gcl-red);
    box-shadow: 0 4px 12px rgba(16, 29, 48, .18);
    transition: transform .15s ease;
}
.as-input::-moz-range-thumb {
    width: var(--as-thumb);
    height: var(--as-thumb);
    border-radius: 50%;
    background: var(--gcl-white);
    border: 3px solid var(--gcl-red);
    box-shadow: 0 4px 12px rgba(16, 29, 48, .18);
}
.as.is-dragging .as-input::-webkit-slider-thumb,
.as-input:active::-webkit-slider-thumb { transform: scale(1.08); }
.as-input:focus { outline: none; }
.as-input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--gcl-bg), 0 0 0 7px var(--gcl-navy); }
.as-input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--gcl-bg), 0 0 0 7px var(--gcl-navy); }

/* kwota pośrednia (np. €175) nad pokrętłem */
.as-bubble {
    position: absolute;
    bottom: 100%;
    left: calc(var(--as-thumb) / 2 + (100% - var(--as-thumb)) * var(--as-fill-n, 0));
    transform: translate(-50%, -6px);
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--gcl-navy);
    color: var(--gcl-white);
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.as.is-between .as-bubble { opacity: 1; }

.as-ticks {
    position: relative;
    height: clamp(30px, 2.4vw, 44px);
    height: clamp(30px, 2.4cqw, 44px);
    margin-top: .15vw;
    margin-top: .15cqw;
}
.as-tick {
    position: absolute;
    left: var(--as-pos);
    top: 0;
    transform: translateX(-50%);
    padding: 2px 6px;
    border: 0;
    border-radius: 6px;
    background: none;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(15px, 1.5vw, 28px);
    font-size: clamp(15px, 1.5cqw, 28px);
    letter-spacing: -.01em;
    color: var(--gcl-navy);
    cursor: pointer;
    transition: color .15s, transform .15s;
}
.as-tick:first-child { transform: translateX(-30%); }
.as-tick:last-child { transform: translateX(-70%); }
.as-tick:hover { color: var(--gcl-red); }
.as-tick.is-active { color: var(--gcl-red); font-weight: 800; font-size: clamp(16px, 1.68vw, 31px); }
.as-tick:focus-visible { outline: 2px solid var(--gcl-navy); outline-offset: 2px; }

.gcl__divider {
    flex: 0 0 1px;
    align-self: stretch;
    height: 4.3vw;
    height: 4.3cqw;
    margin: -.4vw 1.8vw 0 1.6vw;
    margin: -.4cqw 1.8cqw 0 1.6cqw;
    background: var(--gcl-line);
}

.gcl__cta {
    flex: 0 0 24.8vw;
    flex: 0 0 24.8cqw;
    margin-top: -.05vw;
    margin-top: -.05cqw;
}
.gcl__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.1vw, 20px);
    gap: clamp(10px, 1.1cqw, 20px);
    width: 100%;
    height: clamp(52px, 4.25vw, 80px);
    height: clamp(52px, 4.25cqw, 80px);
    padding: 0 1.6vw;
    padding: 0 1.6cqw;
    border: 0;
    border-radius: 999px;
    background: var(--gcl-red);
    color: var(--gcl-white);
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(16px, 1.5vw, 28px);
    font-size: clamp(16px, 1.5cqw, 28px);
    letter-spacing: -.005em;
    cursor: pointer;
    box-shadow: 0 14px 26px -12px rgba(230, 0, 35, .55);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gcl__buy:hover { background: var(--gcl-red-dark); transform: translateY(-1px); box-shadow: 0 18px 30px -12px rgba(230, 0, 35, .6); }
.gcl__buy:active { transform: translateY(0); }
.gcl__buy:focus { outline: none; }
.gcl__buy:focus-visible { outline: 3px solid var(--gcl-navy); outline-offset: 4px; }
.gcl__buy svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gcl__buy-cart { width: 1.35em; height: 1.35em; }
.gcl__buy-arrow { width: 1.1em; height: 1.1em; transition: transform .18s ease; }
.gcl__buy:hover .gcl__buy-arrow { transform: translateX(3px); }

.gcl__summary {
    margin: 12px 4px 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--gcl-muted);
}
.gcl__summary strong { display: block; color: var(--gcl-navy); }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1199px) {
    .gcl__top { grid-template-columns: 44% 56%; }
    .gcl__text { padding-top: 9vw; }
    .gcl__lead { max-width: 34vw; }
    .gcl__benefits { flex-wrap: wrap; row-gap: 14px; }
    .gcl__bar { flex-wrap: wrap; row-gap: 22px; margin-top: 2vw; }
    .as { flex: 1 1 100%; }
    .as-label { flex-basis: 15vw; }
    .gcl__divider { display: none; }
    .gcl__cta { flex: 1 1 100%; margin-top: 0; display: flex; flex-direction: column; align-items: flex-end; }
    .gcl__buy { width: auto; min-width: 340px; padding: 0 34px; }
}

@media (max-width: 991px) {
    .gcl__top { grid-template-columns: 1fr; }
    .gcl__text { padding: 56px 6vw 0; }
    .gcl__lead { max-width: 520px; }
    .gc-visual { width: 100%; margin: 10px 0 0 auto; max-width: 760px; }
    .as-label { flex-basis: 140px; }
}

/* ------------------------------------------------------------------ telefon */
@media (max-width: 767px) {
    .gcl { padding-bottom: 32px; }
    .gcl__text { padding: 36px 20px 0; }
    .gcl__title { font-size: clamp(40px, 12.5vw, 60px); }
    .gcl__lead { margin-top: 12px; font-size: 18px; }
    .gcl__benefits { margin-top: 22px; flex-wrap: nowrap; }
    .gcl__benefits li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 12px; font-size: 13px; }
    .gcl__benefits li:first-child { padding-left: 0; }
    .gcl__ico { width: 26px; height: 26px; }
    .gc-visual { margin-top: 56px; width: 112%; margin-left: -4%; }

    .gcl__bar { padding: 0 20px; margin-top: 4px; }
    .as { flex-direction: column; }
    .as-label { flex: none; padding: 0 0 6px; font-size: 17px; }
    .as-body { width: 100%; padding: 0; }
    .as-track { margin-top: 14px; margin-left: 0; margin-right: 0; }
    /* skróty jako przyciski, zawijane */
    .as-ticks { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
    .as-tick,
    .as-tick:first-child,
    .as-tick:last-child {
        position: static;
        transform: none;
        flex: 1 0 calc(33.333% - 8px);
        padding: 10px 0;
        border: 1px solid var(--gcl-line);
        border-radius: 999px;
        background: var(--gcl-white);
        font-size: 16px;
    }
    .as-tick.is-active { border-color: var(--gcl-red); font-size: 16px; }
    .gcl__cta { align-items: stretch; }
    .gcl__buy { width: 100%; min-width: 0; height: 56px; font-size: 17px; }
}

/* telefon: bez złotego efektu przy przesuwaniu */
@media (max-width: 767px) {
    .gc-glow, .gc-sparks, .gc-rays { display: none; }
}

/* ------------------------------------------------------------------ mniej ruchu */
@media (prefers-reduced-motion: reduce) {
    .gc-float { transition: none; transform: translate3d(0, calc(var(--gc-progress) * -4%), 0); }
    .gc-glow, .gc-sparks, .gc-rays { display: none; }
    .gc-card::after { opacity: .2; }
    .gc-card__amount.is-bump { animation: none; }
    .gcl__buy,
    .gcl__buy-arrow,
    .as-input::-webkit-slider-thumb { transition: none; }
}


/* ======================= ODPORNOŚĆ NA STYLE MOTYWU ======================= */
/* hero skalowane do szerokości treści sklepu (cqw), a nie okna — vw zostaje jako fallback */
.gc-page { container-type: inline-size; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* tylko elementy tekstowe — ikony motywu (np. serce listy życzeń) mają własny font */
.gc-page h1, .gc-page h2, .gc-page h3, .gc-page p, .gc-page label, .gc-page input, .gc-page textarea,
.gc-page select, .gc-page dt, .gc-page dd, .gc-page li, .gc-page output,
.gc-page .gcl__buy, .gc-page .gcs__buy, .gc-page .as-tick, .gc-page .gcf-tile span,
.gc-page .gc-card div, .gc-page .gcs__card div, .gc-page .ty-gift-certificate__amount-alert { font-family: inherit; }
.gc-page h1, .gc-page h2, .gc-page h3 { text-transform: none; }
.gc-card, .gc-card *,
.gcs__card, .gcs__card * { color: #fff !important; }
.gc-card__value::after, .gcs__card-value::after { background: #E60023 !important; }
.gcf .ty-gift-certificate__switch { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.gcf .ty-gift-certificate__switch::before, .gcf .ty-gift-certificate__switch::after { display: none; }

/* ======================= FORMULARZ ======================= */
.gcf,
.gct {
    --gcl-bg: #FAF8F7;
    --gcl-navy: #101D30;
    --gcl-red: #E60023;
    --gcl-red-dark: #C4001E;
    --gcl-muted: #606875;
    --gcl-line: #D8DBE1;
    --gcl-white: #FFFFFF;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--gcl-navy);
    -webkit-font-smoothing: antialiased;
}
.gcf *, .gcf *::before, .gcf *::after,
.gct *, .gct *::before, .gct *::after { box-sizing: border-box; }

/* jasne tło na całą szerokość ekranu, bez poziomego przewijania */
.gc-page { background: #FAF8F7; box-shadow: 0 0 0 100vmax #FAF8F7; clip-path: inset(0 -100vmax); }
.gc-page .ty-mainbox-container { margin-bottom: 0; }

.gcf {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 80px) 24px clamp(36px, 4vw, 64px);
}

.gcf__title,
.gct__title {
    margin: 0;
    font-size: clamp(28px, 2.6vw, 44px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
    color: var(--gcl-navy);
    text-transform: none;
}
.gcf__title::after,
.gct__title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: 18px;
    border-radius: 2px;
    background: var(--gcl-red);
}

.gcf__grid {
    display: grid;
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    gap: clamp(28px, 3.2vw, 48px);
    align-items: start;
    margin-top: clamp(28px, 3vw, 44px);
}

.gcf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.gcf .ty-control-group { margin: 0 0 22px; padding: 0; }
.gcf .ty-control-group__title,
.gcf__label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gcl-navy);
    text-transform: none;
}
.gcf .ty-control-group__title.cm-required::after,
.gcf__label--req::after { content: " *"; color: var(--gcl-red); }
.gcf .ty-control-group__title::before { display: none; }

.gcf input[type="text"],
.gcf input[type="email"],
.gcf input[type="tel"],
.gcf select,
.gcf textarea {
    display: block;
    width: 100%;
    max-width: none;
    height: 50px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--gcl-line);
    border-radius: 10px;
    background: var(--gcl-white);
    color: var(--gcl-navy);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.gcf textarea { height: 130px; padding: 14px 16px 30px; resize: vertical; }
.gcf input::placeholder,
.gcf textarea::placeholder { color: #9AA1AD; opacity: 1; }
.gcf input:focus,
.gcf select:focus,
.gcf textarea:focus {
    outline: none;
    border-color: var(--gcl-navy);
    box-shadow: 0 0 0 3px rgba(16, 29, 48, .12);
}

/* błędy walidacji CS-Cart — pod polem */
.gcf .cm-failed-field,
.gcf input.cm-failed-field,
.gcf textarea.cm-failed-field,
.gcf select.cm-failed-field { border-color: var(--gcl-red) !important; box-shadow: 0 0 0 3px rgba(230, 0, 35, .1); }
.gcf .cm-failed-label { color: var(--gcl-red); }
.gcf .help-inline,
.gcf .ty-error-text {
    display: block;
    margin: 6px 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gcl-red);
}

/* kwota */
.gcf-amount { position: relative; }
.gcf-amount__cur {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--gcl-navy);
    pointer-events: none;
}
.gcf .gcf-amount input#gift_cert_amount {
    height: 54px;
    padding: 0 56px 0 38px;
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.gcf-amount__steps {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gcf-amount__steps button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--gcl-navy);
    cursor: pointer;
}
.gcf-amount__steps button:hover { background: #F0F1F4; }
.gcf-amount__steps button:focus-visible { outline: 2px solid var(--gcl-navy); outline-offset: 1px; }
.gcf-amount__steps svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gcf .ty-gift-certificate__amount-alert { margin-top: 6px; font-size: 13px; color: var(--gcl-muted); }

/* wiadomość */
.gcf-message { position: relative; }
.gcf-message__count {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 12px;
    color: var(--gcl-muted);
    pointer-events: none;
}

/* ======================= PRODUKTY DO KARTY („Πρόσθεσε κάτι μαζί” + panel) =======================
   js/addons/my_changes/giftcard/giftcard-products.js; panel .gcp-panel jest w <body>, poza .gcf */
.gcp, .gcp-panel {
    --gcl-navy: #101D30;
    --gcl-red: #E60023;
    --gcl-muted: #606875;
    --gcl-line: #E3E6EB;
    --gcp-soft: #F4F5F7;
    --gcp-ok: #13804A;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--gcl-navy);
    -webkit-font-smoothing: antialiased;
}
.gcp *, .gcp-panel *, .gcp *::before, .gcp-panel *::before, .gcp *::after, .gcp-panel *::after { box-sizing: border-box; }
.gcp button, .gcp-panel button, .gcp-panel input {
    font-family: inherit; text-transform: none; letter-spacing: normal; -webkit-appearance: none; appearance: none;
    margin: 0; cursor: pointer; color: inherit;
}
.gcp svg, .gcp-panel svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gcp [hidden], .gcp-panel [hidden], .gcp-panel[hidden] { display: none !important; }

.gcf__main { min-width: 0; }
.gcp { min-width: 0; max-width: 100%; margin: 4px 0 28px; padding: 24px; background: #fff; border: 1px solid var(--gcl-line); border-radius: 18px; }
.gcp__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.gcp .gcp__title { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; color: var(--gcl-navy); }
.gcp__opt { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 3px 10px; border-radius: 99px; background: var(--gcp-soft); color: var(--gcl-muted); font-size: 12px; font-weight: 700; }
.gcp .gcp__sub { margin: 5px 0 0; font-size: 14px; line-height: 1.45; color: var(--gcl-muted); max-width: 520px; }
.gcp__more {
    flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
    border: 1.5px solid var(--gcl-navy); border-radius: 99px; background: #fff;
    font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .15s, color .15s;
}
.gcp__more svg { width: 16px; height: 16px; stroke-width: 2.4; }
.gcp__more:hover { background: var(--gcl-navy); color: #fff; }
.gcp__more:focus-visible, .gcp-add:focus-visible, .gcp-size:focus-visible, .gcp-rm:focus-visible, .gcp-qty button:focus-visible,
.gcp-pbtn:focus-visible, .gcp-chip:focus-visible, .gcp-tabs button:focus-visible, .gcp-panel__x:focus-visible,
.gcp-continue:focus-visible, .gcp-morebtn:focus-visible { outline: 3px solid rgba(230, 0, 35, .35); outline-offset: 2px; }

/* kafelki propozycji */
.gcp__rail { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.gcp__rail .gcp-tile:nth-child(n+5) { display: none; }
.gcp-tile {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px;
    border: 1.5px solid var(--gcl-line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.gcp-tile.is-on { border-color: var(--gcl-red); box-shadow: 0 0 0 3px rgba(230, 0, 35, .12); }
.gcp-tile--ghost { height: 250px; border: 0; background: linear-gradient(100deg, var(--gcp-soft) 30%, #fafbfc 50%, var(--gcp-soft) 70%); background-size: 300% 100%; animation: gcp-ghost 1.4s ease infinite; }
@keyframes gcp-ghost { from { background-position: 100% 0; } to { background-position: 0 0; } }
.gcp-tile__img { aspect-ratio: 1 / 1; border-radius: 10px; background: var(--gcp-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gcp-tile__img img, .gcp-row__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gcp-noimg { color: #B9BEC8; display: flex; }
.gcp-noimg svg { width: 40%; height: auto; min-width: 26px; stroke-width: 1.6; }
.gcp-tile__badge {
    position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px 4px 7px; border-radius: 99px; background: var(--gcl-red); color: #fff; font-size: 11px; font-weight: 700;
}
.gcp-tile__badge svg { width: 11px; height: 11px; stroke-width: 2.6; }
.gcp-brand { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--gcl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcp-tile__name { margin-top: 2px; font-size: 13px; font-weight: 600; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gcp-tile__bot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.gcp-price { font-size: 15px; font-weight: 800; white-space: nowrap; }
.gcp-price s { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--gcl-muted); }
.gcp-add {
    flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gcl-navy); background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 0; transition: background-color .15s, border-color .15s, transform .15s;
}
.gcp-add svg { width: 15px; height: 15px; stroke-width: 2.4; }
.gcp-add:hover { transform: scale(1.06); }
.gcp-tile.is-on .gcp-add { background: var(--gcl-red); border-color: var(--gcl-red); color: #fff; }

/* wybrane produkty */
.gcp__picked { margin-top: 18px; padding-top: 4px; border-top: 1px dashed #D3D7DE; }
.gcp-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gcl-line); }
.gcp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.gcp-row__img { flex: none; width: 60px; height: 60px; border-radius: 12px; background: var(--gcp-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gcp-row__info { flex: 1; min-width: 0; }
.gcp-row__name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.gcp-row__need { margin-top: 5px; font-size: 13px; font-weight: 700; color: var(--gcl-red); }
.gcp-row.is-need .gcp-size:not([disabled]) { border-color: #F0A7B2; }
.gcp-row.is-shake { animation: gcp-shake .4s; }
@keyframes gcp-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.gcp-row__price { flex: none; min-width: 64px; text-align: right; font-size: 15px; font-weight: 800; }
.gcp-qty { flex: none; display: flex; align-items: center; height: 36px; border: 1.5px solid var(--gcl-line); border-radius: 99px; }
.gcp-qty button { width: 32px; height: 100%; border: 0; background: none; font-size: 17px; font-weight: 700; padding: 0; }
.gcp-qty button[disabled] { color: #C4C8CF; cursor: default; }
.gcp-qty span { min-width: 18px; text-align: center; font-size: 14px; font-weight: 800; }
.gcp-rm { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gcl-line); background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--gcl-muted); }
.gcp-rm svg { width: 12px; height: 12px; }
.gcp-rm:hover { border-color: var(--gcl-red); color: var(--gcl-red); }

.gcp-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.gcp-size {
    min-width: 38px; height: 30px; padding: 0 9px; border: 1px solid var(--gcl-line); border-radius: 8px; background: #fff;
    font-size: 12px; font-weight: 700; transition: border-color .15s, background-color .15s;
}
.gcp-size:hover { border-color: var(--gcl-navy); }
.gcp-size.is-on { background: var(--gcl-navy); border-color: var(--gcl-navy); color: #fff; }
.gcp-size[disabled] { color: #C4C8CF; text-decoration: line-through; cursor: default; }

/* podsumowanie: produkty karty */
.gcs__lines { margin: -4px 0 0; padding: 0 0 10px; list-style: none; border-bottom: 1px solid var(--gcl-line, #D8DBE1); }
.gcs__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; color: var(--gcl-muted); }
.gcs__lines li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcs__lines li span:last-child { flex: none; }

/* ---------- panel ---------- */
html.gcp-lock, html.gcp-lock body { overflow: hidden; }
.gcp-panel { position: fixed; inset: 0; z-index: 100000; }
.gcp-panel__backdrop { position: absolute; inset: 0; background: rgba(16, 29, 48, .5); opacity: 0; transition: opacity .22s; }
.gcp-panel__box {
    position: absolute; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%;
    display: flex; flex-direction: column; background: #fff; box-shadow: -30px 0 80px rgba(0, 0, 0, .25);
    transform: translateX(100%); transition: transform .22s cubic-bezier(.2, .7, .2, 1);
}
.gcp-panel.is-open .gcp-panel__backdrop { opacity: 1; }
.gcp-panel.is-open .gcp-panel__box { transform: none; }
.gcp-panel__grab { display: none; }
.gcp-panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px 14px; }
.gcp-panel__head h2 { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 800; color: var(--gcl-navy); text-transform: none; font-family: inherit; }
.gcp-panel__head p { margin: 5px 0 0; font-size: 14px; line-height: 1.45; color: var(--gcl-muted); font-family: inherit; }
.gcp-panel__x { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gcp-soft); display: flex; align-items: center; justify-content: center; padding: 0; }
.gcp-panel__x svg { width: 15px; height: 15px; stroke-width: 2.2; }
.gcp-panel__tools { padding: 0 26px 14px; }
.gcp-search {
    display: flex; align-items: center; gap: 10px; height: 52px; margin: 0; padding: 0 16px;
    border: 1.5px solid var(--gcl-line); border-radius: 14px; background: #fff; cursor: text; transition: border-color .15s, box-shadow .15s;
}
.gcp-search:focus-within { border-color: var(--gcl-navy); box-shadow: 0 0 0 4px rgba(16, 29, 48, .07); }
.gcp-search svg { flex: none; width: 19px; height: 19px; color: var(--gcl-muted); stroke-width: 2.2; }
.gcp-panel .gcp-search input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; box-shadow: none; padding: 0;
    font-size: 16px; font-weight: 500; color: var(--gcl-navy); cursor: text;
}
.gcp-search input::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; }
.gcp-chips { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gcp-chips::-webkit-scrollbar { display: none; }
.gcp-chip { flex: none; height: 38px; padding: 0 15px; border: 1px solid var(--gcl-line); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.gcp-chip.is-on { background: var(--gcl-navy); border-color: var(--gcl-navy); color: #fff; }
.gcp-tabs { display: flex; gap: 24px; padding: 0 26px; border-bottom: 1px solid var(--gcl-line); }
.gcp-tabs button { height: 44px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--gcl-muted); box-shadow: inset 0 0 0 transparent; }
.gcp-tabs button.is-on { color: var(--gcl-navy); box-shadow: inset 0 -3px 0 var(--gcl-red); }
.gcp-tabs em { display: inline-block; min-width: 20px; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: var(--gcl-red); color: #fff; font-size: 12px; font-style: normal; text-align: center; }
.gcp-panel__list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 26px 12px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gcp-prow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gcl-line); }
.gcp-prow .gcp-row__img { width: 80px; height: 80px; }
.gcp-prow__info { flex: 1; min-width: 0; }
.gcp-prow .gcp-brand { margin-top: 0; }
.gcp-prow__name { margin: 1px 0 4px; font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcp-pbtn {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px;
    border: 1.5px solid var(--gcl-navy); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.gcp-pbtn svg { width: 14px; height: 14px; stroke-width: 2.4; }
.gcp-pbtn.is-on { background: #E8F6EE; border-color: #3DB874; color: var(--gcp-ok); }
.gcp-empty { margin: 0; padding: 36px 10px; text-align: center; font-size: 15px; color: var(--gcl-muted); }
.gcp-morebtn { display: block; width: 100%; height: 46px; margin: 14px 0 4px; border: 1.5px solid var(--gcl-line); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 700; }
.gcp-loading { display: flex; justify-content: center; gap: 6px; padding: 26px 0; }
.gcp-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--gcl-red); animation: gcp-dot 1s infinite ease-in-out; }
.gcp-loading span:nth-child(2) { animation-delay: .15s; }
.gcp-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes gcp-dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }
.gcp-panel__foot { padding: 16px 26px 22px; border-top: 1px solid var(--gcl-line); box-shadow: 0 -10px 30px rgba(16, 29, 48, .06); }
.gcp-sum { display: flex; justify-content: space-between; padding: 2px 0; font-size: 14px; color: var(--gcl-muted); }
.gcp-sum b { color: var(--gcl-navy); }
.gcp-sum--total { margin: 8px 0 14px; font-size: 18px; font-weight: 800; color: var(--gcl-navy); }
.gcp-continue {
    display: block; width: 100%; height: 54px; border: 0; border-radius: 99px; background: var(--gcl-red); color: #fff !important;
    font-size: 16px; font-weight: 700; box-shadow: 0 12px 26px -10px rgba(230, 0, 35, .6); transition: background-color .15s;
}
.gcp-continue:hover { background: #C4001E; }

@media (prefers-reduced-motion: reduce) {
    .gcp-panel__box, .gcp-panel__backdrop { transition: none; }
    .gcp-row.is-shake, .gcp-tile--ghost, .gcp-loading span { animation: none; }
}

/* sposób wysyłki — kafelki */
.gcf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.gcf-tile {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 20px 20px 20px 18px;
    border: 1px solid var(--gcl-line);
    border-radius: 12px;
    background: var(--gcl-white);
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.gcf-tile:hover { border-color: #B9BEC8; }
.gcf-tile.is-selected { border-color: var(--gcl-red); background: #FFF5F6; }
.gcf-tile input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 2px solid #B9BEC8;
    border-radius: 50%;
    background: var(--gcl-white);
    cursor: pointer;
}
.gcf-tile input[type="radio"]:checked { border-color: var(--gcl-red); box-shadow: inset 0 0 0 4px var(--gcl-white); background: var(--gcl-red); }
.gcf-tile input[type="radio"]:focus-visible { outline: 3px solid var(--gcl-navy); outline-offset: 2px; }
.gcf-tile__ico { flex: 0 0 auto; width: 30px; height: 30px; fill: none; stroke: var(--gcl-navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gcf-tile.is-selected .gcf-tile__ico { stroke: var(--gcl-red); }
.gcf-tile__name { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--gcl-navy); }
.gcf-tile__desc { display: block; margin-top: 4px; font-weight: 500; font-size: 13.5px; line-height: 1.45; color: var(--gcl-muted); }

/* bloki pól — płynne pokazanie (przełącza je oryginalny skrypt: switchAvailability) */
.gcf .ty-gift-certificate__block:not(.hidden) { animation: gcf-in .28s ease-out; }
@keyframes gcf-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.gcf__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.gcf .ty-gift-certificate__country,
.gcf .ty-gift-certificate__state { float: none; width: auto; }
.gcf #gift_cert_address_2 { margin-top: -10px; }

/* ======================= PODSUMOWANIE ======================= */
.gcs {
    position: sticky;
    top: 110px;
    padding: 24px;
    border: 1px solid #E6E8EC;
    border-radius: 16px;
    background: var(--gcl-white);
}
.gcs__title { margin: 0 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -.015em; color: var(--gcl-navy); text-transform: none; }

/* miniatura: pudełko + karta HTML (kwota na żywo) + przednia ścianka nad kartą */
.gcs__thumb {
    position: relative;
    aspect-ratio: 680 / 642;
    border-radius: 12px;
    overflow: hidden;
    background: #F8F2F3;
}
.gcs__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcs__card {
    position: absolute;
    left: 49%;
    top: 52%;
    width: 46%;
    aspect-ratio: 715 / 400;
    container-type: inline-size;
    border-radius: 5.5cqw;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(121deg, rgba(230, 0, 35, 0) 50%, rgba(230, 0, 35, .9) 70%, rgba(150, 6, 25, .9) 80%, rgba(16, 29, 48, 0) 88%),
        linear-gradient(170deg, #1a2a44 0%, #101D30 60%, #0c1727 100%);
    transform: translate(-50%, -50%) rotate(-7deg);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
}
.gcs__card-logo { position: absolute; left: 10%; top: 16%; font-weight: 800; font-size: 8cqw; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.gcs__card-value { position: absolute; left: 10%; top: 45%; font-weight: 700; font-size: 4.8cqw; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.gcs__card-value::after { content: ""; position: absolute; left: .03em; top: 190%; width: 2.1em; height: .22em; border-radius: .11em; background: #E60023; }
.gcs__card-amount { position: absolute; right: 9%; top: 42%; font-weight: 800; font-size: 15cqw; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.gcs__front { pointer-events: none; }

.gcs__rows { margin: 18px 0 0; padding: 0; }
.gcs__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ECEEF1;
    font-size: 15px;
    line-height: 1.35;
}
.gcs__row dt { margin: 0; color: var(--gcl-muted); font-weight: 500; }
.gcs__row dd { margin: 0; text-align: right; font-weight: 700; color: var(--gcl-navy); overflow-wrap: anywhere; }
.gcs__row.is-empty { display: none; }
.gcs__to { display: block; font-size: 13px; font-weight: 500; color: var(--gcl-muted); }
.gcs__to.is-empty { display: none; }
.gcs__row--total { border-bottom: 0; padding-top: 14px; font-size: 17px; }
.gcs__row--total dt { color: var(--gcl-navy); font-weight: 800; }
.gcs__row--total dd { font-weight: 800; font-size: 20px; }

/* akceptacja regulaminu */
.gcs__terms { margin: 14px 0 16px; }
.gcs__terms .ty-control-group { margin: 0; }
.gcs__check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: var(--gcl-navy);
    cursor: pointer;
}
.gcs__check::after { display: none !important; }
.gcs__check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #B9BEC8;
    border-radius: 6px;
    background: #fff no-repeat center / 14px 14px;
    cursor: pointer;
    transition: background-color .12s, border-color .12s;
}
.gcs__check input[type="checkbox"]:checked {
    border-color: var(--gcl-red);
    background-color: var(--gcl-red);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.gcs__check input[type="checkbox"]:focus-visible { outline: 3px solid var(--gcl-navy); outline-offset: 2px; }
.gcs__check a { color: var(--gcl-red); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* brak zgody: na czerwono tylko kwadracik (bez komunikatu i bez czerwonego tekstu - było za dużo czerwieni) */
.gcs__terms .cm-failed-label { color: var(--gcl-navy) !important; }
.gcs__terms .cm-failed-label input[type="checkbox"] { border-color: var(--gcl-red); box-shadow: 0 0 0 3px rgba(230, 0, 35, .12); }
.gcs__terms .help-inline { display: none !important; }

.gcs__buttons { display: flex; flex-direction: column; gap: 10px; }
.gcs__buy {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--gcl-red) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 22px -12px rgba(230, 0, 35, .55);
    cursor: pointer;
    transition: background-color .18s, transform .18s;
}
.gcs__buy:hover { background: var(--gcl-red-dark) !important; transform: translateY(-1px); }
.gcs__buy:focus-visible { outline: 3px solid var(--gcl-navy); outline-offset: 3px; }
.gcs__buy svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.gcs__buttons .ty-btn__tertiary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin: 0;
    border-radius: 999px !important;
    text-transform: none !important;
    background: transparent !important;
    color: var(--gcl-navy) !important;
    border: 1px solid var(--gcl-line) !important;
    box-shadow: none;
    font-size: 15px !important;
}
.gcs__buttons .ty-btn__tertiary:hover { border-color: var(--gcl-navy) !important; }
.gcs__buttons .ty-add-to-wish { width: 44px; padding: 0; align-self: center; }

/* ======================= REGULAMIN ======================= */
.gct {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(36px, 4vw, 64px) 24px clamp(48px, 5vw, 88px);
    border-top: 1px solid #ECEEF1;
}
.gct__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(32px, 5vw, 80px);
    row-gap: clamp(26px, 2.6vw, 38px);
    margin: clamp(28px, 3vw, 44px) 0 0;
    padding: 0;
    list-style: none;
}
.gct__item { display: flex; gap: 16px; margin: 0; padding: 0; }
.gct__ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FDEBEE;
    color: var(--gcl-red);
}
.gct__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gct__item h3 { margin: 2px 0 6px; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--gcl-navy); text-transform: none; letter-spacing: -.005em; }
.gct__item p { margin: 0; font-size: 15px; line-height: 1.7; color: #3B4352; }
.gct__item p strong { color: var(--gcl-navy); font-weight: 800; }
.gct__item a { color: var(--gcl-red); font-weight: 700; }
.gct:target .gct__title,
.gct__title:focus { outline: none; }

/* ======================= SPRAWDZENIE KARTY (blok gift_certificates_verify) =======================
   templates/addons/my_changes/overrides/addons/gift_certificates/blocks/gift_certificates_verify.tpl */
.row-fluid > .certificates-verify-grid { float: none; width: 100%; margin-left: 0; margin-right: 0; }
.gcv {
    --gcl-navy: #101D30; --gcl-red: #E60023; --gcl-muted: #606875; --gcl-line: #D8DBE1;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--gcl-navy);
    -webkit-font-smoothing: antialiased;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px clamp(48px, 5vw, 80px);
    background: #FAF8F7; box-shadow: 0 0 0 100vmax #FAF8F7; clip-path: inset(0 -100vmax);
}
.gcv *, .gcv *::before, .gcv *::after { box-sizing: border-box; }
.gcv__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
    gap: 18px 24px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #ECEEF1;
    border-radius: 18px;
    box-shadow: 0 18px 40px -28px rgba(16, 29, 48, .35);
}
.gcv__ico {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 16px; background: #FFF0F2; color: var(--gcl-red);
}
.gcv__ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gcv .gcv__title { margin: 0; font-family: inherit; font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--gcl-navy); text-transform: none; letter-spacing: -.005em; }
.gcv .gcv__sub { margin: 4px 0 0; font-family: inherit; font-size: 14px; line-height: 1.5; color: var(--gcl-muted); }
.gcv__form { margin: 0; }
.gcv__field {
    display: flex; align-items: stretch; height: 54px;
    border: 1.5px solid var(--gcl-line); border-radius: 14px; background: #fff; overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.gcv__field:focus-within { border-color: var(--gcl-navy); box-shadow: 0 0 0 4px rgba(16, 29, 48, .07); }
.gcv .gcv__input {
    flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 16px;
    border: 0; outline: 0; background: none; box-shadow: none; border-radius: 0;
    font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: .04em; color: var(--gcl-navy);
}
.gcv .gcv__input::placeholder { font-weight: 500; letter-spacing: 0; color: #9AA0AA; }
.gcv__btn {
    flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 5px; padding: 0 18px;
    border: 0; border-radius: 10px; background: var(--gcl-navy); color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: normal;
    cursor: pointer; transition: background-color .15s;
}
.gcv__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.gcv__btn:hover { background: var(--gcl-red); }
.gcv__btn:hover svg { transform: translateX(2px); }
.gcv__btn:focus-visible { outline: 3px solid rgba(230, 0, 35, .35); outline-offset: 2px; }
.gcv .help-inline, .gcv .ty-error-text { display: block; margin-top: 6px; font-size: 13px; color: var(--gcl-red); }
.gcv__field.ty-error, .gcv__form .cm-failed-field { border-color: var(--gcl-red); }
@media (max-width: 991px) {
    .gcv__card { grid-template-columns: auto minmax(0, 1fr); }
    .gcv__form { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .gcv { padding: 0 16px 40px; }
    .gcv__card { padding: 20px 18px; gap: 14px 16px; border-radius: 16px; }
    .gcv__ico { width: 46px; height: 46px; border-radius: 14px; }
    .gcv__ico svg { width: 24px; height: 24px; }
    .gcv .gcv__title { font-size: 18px; }
    .gcv .gcv__sub { font-size: 13px; }
    .gcv__btn { padding: 0 14px; font-size: 14px; }
}

/* ======================= RESPONSYWNOŚĆ ======================= */
@media (max-width: 991px) {
    .gcf__grid { grid-template-columns: 1fr; }
    .gcs { position: static; }
    .gct__list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .gcf { padding: 36px 16px 28px; }
    .gct { padding: 32px 16px 48px; }
    .gcf__row, .gcf__row--3, .gcf-tiles { grid-template-columns: 1fr; gap: 0; }
    .gcf-tiles { gap: 12px; }
    .gcs { padding: 18px; }
    .gct__item { gap: 14px; }
    .gct__ico { width: 40px; height: 40px; }
}

/* produkty do karty — telefon */
@media (max-width: 767px) {
    .gcp { display: flex; flex-direction: column; padding: 18px; border-radius: 16px; }
    .gcp__head { display: contents; }
    .gcp__head > div { order: 0; }
    .gcp__rail { order: 1; }
    .gcp__more { order: 2; justify-content: center; width: 100%; height: 46px; margin-top: 14px; }
    .gcp__picked { order: 3; }
    .gcp .gcp__title { font-size: 18px; }
    .gcp .gcp__sub { font-size: 13px; }
    .gcp__rail {
        display: flex; gap: 10px; margin: 16px -18px 0 0; padding-right: 18px;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .gcp__rail::-webkit-scrollbar { display: none; }
    .gcp__rail .gcp-tile { flex: none; width: 150px; scroll-snap-align: start; }
    .gcp__rail .gcp-tile:nth-child(n+5) { display: flex; }
    .gcp-tile__badge { top: 14px; left: 14px; }
    .gcp-row { flex-wrap: wrap; gap: 10px 12px; }
    .gcp-row__img { width: 56px; height: 56px; order: 0; }
    .gcp-row__info { order: 1; flex: 1 1 calc(100% - 128px); }
    .gcp-rm { order: 2; }
    .gcp-qty { order: 3; margin-left: 68px; }
    .gcp-row__price { order: 4; margin-left: auto; }

    .gcp-panel__box {
        top: auto; left: 0; width: 100%; height: 92%; height: 92dvh;
        border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .3); transform: translateY(100%);
    }
    .gcp-panel__grab { display: block; width: 44px; height: 5px; margin: 9px auto 0; border-radius: 9px; background: #CFD3DA; }
    .gcp-panel__head { padding: 12px 18px 10px; }
    .gcp-panel__head h2 { font-size: 20px; }
    .gcp-panel__head p { font-size: 13px; }
    .gcp-panel__tools { padding: 0 18px 10px; }
    .gcp-search { height: 48px; }
    .gcp-chips { margin-right: -18px; padding-right: 18px; }
    .gcp-tabs { padding: 0 18px; gap: 20px; }
    .gcp-tabs button { font-size: 14px; }
    .gcp-panel__list { padding: 0 18px 10px; }
    .gcp-prow { gap: 12px; padding: 12px 0; align-items: flex-start; }
    .gcp-prow .gcp-row__img { width: 64px; height: 64px; }
    .gcp-pbtn { height: 36px; padding: 0 12px; font-size: 13px; }
    .gcp-pbtn span { display: none; }
    .gcp-pbtn { width: 36px; padding: 0; justify-content: center; }
    .gcp-panel__foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); }
    .gcp-sum--total { margin: 6px 0 12px; font-size: 17px; }
}
.gcs [hidden] { display: none !important; }

/* ======================= WYNIK SPRAWDZENIA KARTY (gift_certificates.verify) =======================
   templates/addons/my_changes/overrides/addons/gift_certificates/views/gift_certificates/verify.tpl */
.ui-dialog:has(.gcr) { border-radius: 20px; overflow: hidden; border: 0; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45); }
.ui-dialog:has(.gcr) .ui-dialog-titlebar { padding: 20px 24px 8px; border: 0; background: #fff; }
.ui-dialog:has(.gcr) .ui-dialog-title {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 20px; font-weight: 800; color: #101D30; text-transform: none; letter-spacing: -.005em;
}
.ui-dialog:has(.gcr) .ui-dialog-titlebar-close { top: 20px; right: 20px; }
.ui-dialog:has(.gcr) .ui-dialog-content { padding: 8px 24px 24px; background: #fff; }

.gcr {
    --gcl-navy: #101D30; --gcl-red: #E60023; --gcl-muted: #606875; --gcl-line: #E6E8EC;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--gcl-navy);
    -webkit-font-smoothing: antialiased;
    width: 560px; max-width: 100%;
}
.gcr *, .gcr *::before, .gcr *::after { box-sizing: border-box; }
.gcr .ty-price, .gcr .ty-price-num, .gcr bdi { font: inherit; color: inherit; }

.gcr__top { display: flex; align-items: center; gap: 22px; padding: 18px; border-radius: 16px; background: #FAF8F7; }
.gcr__card {
    position: relative; flex: none; width: 190px; aspect-ratio: 1.586; padding: 14px 16px; border-radius: 13px; overflow: hidden;
    background: radial-gradient(120% 140% at 85% 10%, #2A3A55 0%, #101D30 55%, #0A1322 100%);
    box-shadow: 0 16px 30px -14px rgba(16, 29, 48, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #fff;
}
.gcr__card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 0, 35, .55), transparent 65%); }
.gcr .gcr__card div { color: #fff; font-family: inherit; }
.gcr__card-logo { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.gcr__card-logo::after { content: ""; display: block; width: 26px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--gcl-red); }
.gcr__card-code { position: absolute; left: 16px; bottom: 13px; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .9; white-space: nowrap; }
.gcr__balance { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.gcr__balance-label { font-size: 13px; font-weight: 600; color: var(--gcl-muted); }
.gcr__balance-value { margin: 2px 0 8px; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.gcr__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; background: #EEF0F3; color: var(--gcl-muted); }
.gcr__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gcr__status--a { background: #E8F6EE; color: #13804A; }
.gcr__status--p { background: #FFF5E0; color: #A35F00; }
.gcr__status--c, .gcr__status--u { background: #F1F2F4; color: #6B7280; }

.gcr__rows { margin: 16px 0 0; padding: 0; }
.gcr__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid var(--gcl-line); font-size: 15px; }
.gcr__row dt { margin: 0; color: var(--gcl-muted); font-weight: 500; }
.gcr__row dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.gcr__code { letter-spacing: .06em; }

.gcr .gcr__h { margin: 22px 0 8px; font-family: inherit; font-size: 16px; font-weight: 800; color: var(--gcl-navy); text-transform: none; }
.gcr__products { margin: 0; padding: 0; list-style: none; }
.gcr__products li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gcl-line); font-size: 14px; }
.gcr__qty { flex: none; min-width: 26px; font-weight: 800; }
.gcr__pname a { color: var(--gcl-navy); font-weight: 600; text-decoration: none; }
.gcr__pname a:hover { color: var(--gcl-red); }
.gcr__redeem { margin: 14px 0 0; }
.gcr__btn {
    display: block; width: 100%; height: 50px; border: 0; border-radius: 99px; background: var(--gcl-red); color: #fff;
    font-family: inherit; font-size: 15px; font-weight: 700; text-transform: none; cursor: pointer;
}
.gcr__btn:hover { background: #C4001E; }

.gcr__log { margin: 0; padding: 0; list-style: none; }
.gcr__entry { position: relative; display: flex; gap: 14px; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--gcl-line); }
.gcr__entry:last-child { border-bottom: 0; }
.gcr__entry-dot { position: absolute; left: 2px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--gcl-red); box-shadow: 0 0 0 4px #FDEBEE; }
.gcr__entry-dot.is-plus { background: #1FB35C; box-shadow: 0 0 0 4px #E8F6EE; }
.gcr__entry-main { flex: 1; min-width: 0; }
.gcr__entry-title { font-size: 14px; font-weight: 700; }
.gcr__entry-date { margin-top: 2px; font-size: 13px; color: var(--gcl-muted); }
.gcr__entry-products { margin-top: 4px; font-size: 13px; color: var(--gcl-muted); }
.gcr__entry-amounts { flex: none; text-align: right; }
.gcr__entry-diff { font-size: 15px; font-weight: 800; color: var(--gcl-navy); white-space: nowrap; }
.gcr__entry-diff.is-plus { color: #13804A; }
.gcr__entry-left { margin-top: 2px; font-size: 12px; color: var(--gcl-muted); white-space: nowrap; }
.gcr__empty { margin: 4px 0 0; padding: 16px; border-radius: 12px; background: #FAF8F7; font-size: 14px; color: var(--gcl-muted); text-align: center; }
.gcr--error .gcr__empty { margin: 0; }
.gcr .ty-pagination { margin: 10px 0 0; }

@media (max-width: 767px) {
    .ui-dialog:has(.gcr) { border-radius: 18px 18px 0 0; }
    .ui-dialog:has(.gcr) .ui-dialog-titlebar { padding: 16px 18px 6px; }
    .ui-dialog:has(.gcr) .ui-dialog-content { padding: 6px 18px 20px; }
    .gcr { width: auto; }
    .gcr__top { flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; }
    .gcr__card { width: 100%; max-width: 260px; margin: 0 auto; }
    .gcr__balance { align-items: center; text-align: center; }
    .gcr__balance-value { font-size: 30px; }
}

/* gotowe życzenia pod polem wiadomości */
.gcf-wishes { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
.gcf-wishes__label { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--gcl-muted); }
.gcf-wishes__list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.gcf .gcf-wish {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; margin: 0; padding: 0 14px 0 11px;
    border: 1px solid var(--gcl-line); border-radius: 99px; background: #fff;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--gcl-navy);
    text-transform: none; letter-spacing: normal; white-space: nowrap; cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
.gcf .gcf-wish:hover { border-color: var(--gcl-navy); }
.gcf .gcf-wish.is-on { background: #FFF0F2; border-color: var(--gcl-red); color: var(--gcl-red); }
.gcf-wish__emoji { font-size: 16px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.gcf-wish__more { display: none; margin-left: 2px; font-size: 13px; font-weight: 800; }
.gcf .gcf-wish.is-on .gcf-wish__more { display: inline; }
.gcf-wishes__hint { font-weight: 500; }
.gcf .gcf-wish:focus-visible { outline: 3px solid rgba(230, 0, 35, .35); outline-offset: 2px; }
@media (max-width: 767px) {
    .gcf-wishes__list {
        flex-wrap: nowrap; width: calc(100% + 16px); margin-right: -16px; padding-right: 16px;
        overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .gcf-wishes__list::-webkit-scrollbar { display: none; }
    .gcf .gcf-wish { flex: none; }
}

/* okruszki leżą na tle strony δωροκάρτας: strona wjeżdża pod nie ujemnym marginesem (ten plik ładuje się tylko tutaj) */
.container-fluid-row.breadcrumbs-grid { position: relative; z-index: 2; }
.container-fluid-row.breadcrumbs-grid .ty-breadcrumbs { padding-top: 22px; }
.gc-page { margin-top: -40px; }
@media (max-width: 767px) { .gc-page .gcl { padding-top: 14px; } }

/* adres odbiorcy (wysyłka pocztą) */
.gcf input.hidden, .gcf select.hidden { display: none !important; }   /* nasze display:block na polach wygrywało z .hidden CS-Cart (zapasowe pole województwa) */
.gcf-post { margin: 4px 0 26px; padding: 22px 22px 6px; border: 1px solid var(--gcl-line); border-radius: 16px; background: #fff; }
.gcf-post__head { margin-bottom: 16px; }
.gcf .gcf-post__title { margin: 0; font-family: inherit; font-size: 17px; font-weight: 800; color: var(--gcl-navy); text-transform: none; }
.gcf .gcf-post__sub { margin: 3px 0 0; font-size: 13px; color: var(--gcl-muted); }
.gcf .ty-billing-zip-code { width: auto; float: none; }
.gcf__row--zip { grid-template-columns: minmax(0, 1fr) 200px; }
.gcf-opt { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--gcl-muted); }
.gcf .gcf-post__hint { margin: -10px 0 18px; font-size: 12px; color: var(--gcl-muted); }
@media (max-width: 767px) {
    .gcf-post { padding: 18px 16px 4px; }
    .gcf__row--zip { grid-template-columns: 1fr; }
}

/* jedna lewa krawędź dla całej strony (okruszki, hero, suwak, formularz, regulamin, sprawdzenie karty):
   równo z krawędzią treści (tam, gdzie zaczynają się okruszki), bez osobnego limitu 1280 px */
@media (min-width: 992px) {
    /* tekst hero zaczyna się na wysokości karty, korzyści dosunięte w dół nad suwak — lewa kolumna wypełnia wysokość obok dłoni */
    .gcl__text { padding-left: 0; padding-top: 4.6vw; padding-top: 4.6cqw; padding-bottom: 2vw; padding-bottom: 2cqw; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
    .gcl__text .gcl__title { font-size: clamp(44px, 6.9cqw, 128px); }
    .gcl__text .gcl__lead { font-size: clamp(18px, 2.55cqw, 46px); margin-top: 1.4cqw; }
    .gcl__text .gcl__benefits { margin-top: 3.6cqw; }
    .gcl__bar { width: 90%; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
    .gcf, .gct, .gcv { max-width: none; padding-left: 0; padding-right: 0; }
}

/* telefon: kolejność hero = tytuł → karta → suwak + przycisk → opis i korzyści
   (karta i suwak na jednym ekranie; .gcl__top i .gcl__text „znikają” z układu, ich dzieci dostają order) */
@media (max-width: 767px) {
    .gcl { display: flex; flex-direction: column; }
    .gcl__top, .gcl__text { display: contents; }
    .gcl__title { order: 1; position: relative; z-index: 2; padding: 36px 20px 0; }
    .gc-visual { order: 2; margin-top: -2px; }
    .gcl__bar { order: 3; }
    .gcl__lead { order: 4; position: relative; z-index: 2; margin: 30px 20px 0; max-width: none; }
    .gcl__benefits { order: 5; position: relative; z-index: 2; margin: 20px 20px 0; }
}

/* telefon: przyklejony pasek z sumą i przyciskiem (widoczny w obrębie formularza, gdy prawdziwy przycisk jest poza ekranem) */
.gcs-sticky { display: none; }
@media (max-width: 767px) {
    .gcs-sticky {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
        display: flex; align-items: center; gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top: 1px solid #ECEEF1; box-shadow: 0 -10px 30px rgba(16, 29, 48, .12);
        font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #101D30;
        transform: translateY(110%); transition: transform .22s ease; visibility: hidden;
    }
    .gcs-sticky.is-on { transform: none; visibility: visible; }
    .gcs-sticky__sum { flex: none; display: flex; flex-direction: column; line-height: 1.15; }
    .gcs-sticky__sum span { font-size: 12px; font-weight: 600; color: #606875; }
    .gcs-sticky__sum b { font-size: 20px; font-weight: 800; }
    .gcf .gcs-sticky__btn {
        flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; margin: 0;
        border: 0; border-radius: 99px; background: #E60023; color: #fff;
        font-family: inherit; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: normal; cursor: pointer;
        box-shadow: 0 10px 22px -10px rgba(230, 0, 35, .6);
    }
    .gcs-sticky__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    /* przycisk „do góry” motywu nie zasłania paska */
    html.gcs-sticky-on .ab__scroll_to_top_button { bottom: 76px !important; transition: bottom .22s ease; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .gcs-sticky { transition: none; } }

/* przewijane w bok listy: zanikająca krawędź pokazuje, że jest więcej (klasy is-start / is-end ustawia giftcard-form.js) */
.gcp-chips {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
@media (max-width: 767px) {
    .gcf-wishes__list, .gcp__rail {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
                mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
    }
}
.gcf-wishes__list.is-scrolled, .gcp__rail.is-scrolled, .gcp-chips.is-scrolled {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 48px), transparent);
            mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 48px), transparent);
}
.gcf-wishes__list.is-end, .gcp__rail.is-end, .gcp-chips.is-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
            mask-image: linear-gradient(to right, transparent, #000 40px);
}
.gcf-wishes__list.is-none, .gcp__rail.is-none, .gcp-chips.is-none { -webkit-mask-image: none; mask-image: none; }

/* podsumowanie jedzie za ekranem na komputerze: kolumna musi mieć wysokość całego formularza (siatka ma align-items: start) */
@media (min-width: 992px) {
    .gcf__aside { align-self: stretch; }
    /* pod przyklejonym nagłówkiem motywu (113 px po przewinięciu) */
    .gcs { top: 130px; }
    /* mniejsza miniatura, żeby całe podsumowanie z przyciskiem mieściło się na ekranie */
    .gcs__thumb { width: 60%; margin: 0 auto; }
}
@media (min-width: 992px) and (max-height: 780px) {
    .gcs__thumb { display: none; }
}
