/* GAMB Popup — style 1:1 z Figmy.
   Gradient #1D0A4A -> #4B479C, akcent #9C77EA, radius 16, font Roboto. */
.gamb-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 5, 40, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}
.gamb-popup-overlay.is-open { opacity: 1; visibility: visible; }

.gamb-popup {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 420px;
    padding: 46px 48px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #1D0A4A 0%, #1D0A4A 42%, #4B479C 100%);
    box-shadow: 0 24px 70px rgba(29, 10, 74, .45);
    font-family: Roboto, Helvetica, Verdana, sans-serif;
    color: #fff;
    transform: translateY(16px) scale(.98);
    transition: transform .28s ease;
}
.gamb-popup-overlay.is-open .gamb-popup { transform: translateY(0) scale(1); }

/* Tresc — wysrodkowana w popupie */
.gamb-popup__content {
    position: relative;
    z-index: 2;
    max-width: 390px;
    margin: 0 auto;
    min-height: 328px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 22px;
}

/* Grafika liniowa — prawa krawedz, w calosci widoczna, dekoracyjnie za trescia */
.gamb-popup__graphic {
    position: absolute;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    max-width: 30%;
    height: auto;
    pointer-events: none;
    z-index: 1;
}

.gamb-popup__eyebrow {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}
.gamb-popup__title {
    margin: 0;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}
.gamb-popup__title .accent { color: #9C77EA; }

.gamb-popup__code { margin: 0; }
.gamb-popup__code-label {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.gamb-popup__code-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #9C77EA;
    line-height: 1.2;
    letter-spacing: .5px;
}

/* Przycisk pill + kolko ze strzalka */
.gamb-popup__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 28px;
    border-radius: 999px;
    background: #9C77EA;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
    transition: filter .2s ease, transform .1s ease;
}
.gamb-popup__btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.gamb-popup__btn:active { transform: translateY(1px); }
.gamb-popup__btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1D0A4A;
    flex: 0 0 38px;
}
.gamb-popup__btn-arrow svg { width: 16px; height: 16px; display: block; }

/* Przycisk zamkniecia — biale kolko, ciemny x */
.gamb-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1D0A4A;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease;
}
.gamb-popup__close:hover { transform: scale(1.08); }

/* MOBILE — uklad pionowy, bez grafiki bocznej */
/* MOBILE — jak w projekcie: ten sam uklad co desktop (grafika po prawej,
   bleeding off), tylko wezszy popup i mniejsze czcionki. */
@media (max-width: 640px) {
    .gamb-popup {
        max-width: 400px;
        min-height: 360px;
        padding: 40px 28px;
    }
    .gamb-popup__graphic {
        width: 150px;
        max-width: 42%;
        right: -38px;
    }
    .gamb-popup__content {
        max-width: 260px;
        min-height: 280px;
        gap: 18px;
    }
    .gamb-popup__title { font-size: 30px; }
    .gamb-popup__code-label,
    .gamb-popup__code-value { font-size: 22px; }
}
