/* GWT Offer Popup overlay */
.gwt-offer-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10050 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.gwt-offer-popup.is-open {
    display: flex !important;
}

.gwt-offer-popup__backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(8, 5, 3, 0.82) !important;
}

.gwt-offer-popup__shell {
    position: relative !important;
    width: min(920px, 96vw) !important;
    max-width: 920px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55) !important;
    background: #000000 !important;
}

/* Desktop: image left + form right */
.gwt-offer-popup__dialog {
    display: table !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

.gwt-offer-popup__media {
    display: table-cell !important;
    width: 46% !important;
    vertical-align: middle !important;
    position: relative !important;
    background: #000000 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.gwt-offer-popup__img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
}

.gwt-offer-popup__badge {
    position: absolute !important;
    left: 14px !important;
    bottom: 14px !important;
    z-index: 2 !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #f8c32c, #f67100) !important;
    color: #1a1410 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Oswald, sans-serif !important;
    box-shadow: 0 8px 20px rgba(246, 113, 0, 0.45) !important;
    line-height: 1 !important;
}

.gwt-offer-popup__badge-pct {
    font-size: 26px !important;
    font-weight: 700 !important;
}

.gwt-offer-popup__badge-off {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}

.gwt-offer-popup__form-wrap {
    display: table-cell !important;
    width: 54% !important;
    vertical-align: middle !important;
    background: #000000 !important;
    padding: 28px 26px !important;
}

.gwt-offer-popup__cols {
    width: 100% !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
}

.gwt-offer-popup__col {
    box-sizing: border-box !important;
}

.gwt-offer-popup__col:first-child {
    float: left !important;
    width: 48% !important;
}

.gwt-offer-popup__col:last-child {
    float: right !important;
    width: 48% !important;
}

/* Animated close (X) button */
.gwt-offer-popup__close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease !important;
    animation: gwtCloseIn 0.45s ease both;
}

.gwt-offer-popup__close-icon {
    position: relative !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.gwt-offer-popup__close-icon::before,
.gwt-offer-popup__close-icon::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

.gwt-offer-popup__close-icon::before {
    transform: rotate(45deg) !important;
}

.gwt-offer-popup__close-icon::after {
    transform: rotate(-45deg) !important;
}

.gwt-offer-popup__close:hover {
    background: rgba(246, 113, 0, 0.2) !important;
    border-color: #f67100 !important;
    box-shadow: 0 0 0 4px rgba(246, 113, 0, 0.15), 0 0 18px rgba(246, 113, 0, 0.45) !important;
    transform: scale(1.08) !important;
}

.gwt-offer-popup__close:hover .gwt-offer-popup__close-icon {
    transform: rotate(90deg) !important;
}

.gwt-offer-popup__close:hover .gwt-offer-popup__close-icon::before,
.gwt-offer-popup__close:hover .gwt-offer-popup__close-icon::after {
    background: #f67100 !important;
    box-shadow: 0 0 8px rgba(246, 113, 0, 0.7) !important;
}

.gwt-offer-popup__close:active {
    transform: scale(0.92) !important;
}

@keyframes gwtCloseIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.gwt-offer-popup input::placeholder,
.gwt-offer-popup textarea::placeholder {
    color: #9a9a9a !important;
    opacity: 1 !important;
    transition: color 0.25s ease, opacity 0.25s ease !important;
}

.gwt-offer-count {
    display: inline-block;
    min-width: 0.7em;
    text-align: center;
    transition: transform 0.12s ease, color 0.2s ease;
}

.gwt-offer-count.is-counting {
    transform: scale(1.15);
    color: #f8c32c;
}

.gwt-offer-count.is-count-done {
    transform: scale(1.25);
    color: #f67100;
}

.gwt-offer-popup__badge .gwt-offer-count.is-counting,
.gwt-offer-popup__badge .gwt-offer-count.is-count-done {
    color: inherit;
}

.gwt-offer-field {
    opacity: 0;
    transform: translateY(18px);
}

.gwt-offer-popup.is-open .gwt-offer-field {
    animation: gwtFieldIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gwt-offer-popup.is-open .gwt-offer-field[data-anim="1"] { animation-delay: 0.08s; }
.gwt-offer-popup.is-open .gwt-offer-field[data-anim="2"] { animation-delay: 0.18s; }
.gwt-offer-popup.is-open .gwt-offer-field[data-anim="3"] { animation-delay: 0.28s; }
.gwt-offer-popup.is-open .gwt-offer-field[data-anim="4"] { animation-delay: 0.38s; }
.gwt-offer-popup.is-open .gwt-offer-field[data-anim="5"] { animation-delay: 0.48s; }

@keyframes gwtFieldIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gwt-offer-popup .gwt-offer-input {
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.25s ease !important;
}

.gwt-offer-popup .gwt-offer-input:hover {
    border-color: #777777 !important;
    background: #383838 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.gwt-offer-popup .gwt-offer-input:focus {
    border-color: #f67100 !important;
    background: #3a3a3a !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow:
        0 0 0 3px rgba(246, 113, 0, 0.22),
        0 8px 20px rgba(246, 113, 0, 0.18) !important;
}

.gwt-offer-popup .gwt-offer-input:focus::placeholder {
    color: #b0b0b0 !important;
    opacity: 0.7 !important;
}

.gwt-offer-popup .gwt-offer-submit {
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, box-shadow 0.3s ease, filter 0.25s ease !important;
}

.gwt-offer-popup .gwt-offer-submit::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -120% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent) !important;
    transform: skewX(-20deg) !important;
    pointer-events: none !important;
}

.gwt-offer-popup.is-open .gwt-offer-submit::after {
    animation: gwtBtnShine 2.8s ease-in-out 0.8s infinite;
}

.gwt-offer-popup .gwt-offer-submit:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.06) !important;
    box-shadow: 0 12px 28px rgba(246, 113, 0, 0.5) !important;
}

.gwt-offer-popup .gwt-offer-submit:active {
    transform: translateY(0) scale(0.98) !important;
}

@keyframes gwtBtnShine {
    0%, 60%, 100% { left: -120%; }
    80% { left: 140%; }
}

.gwt-offer-popup__alert.is-error {
    margin-bottom: 10px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    background: rgba(237, 28, 36, 0.18) !important;
    border: 1px solid rgba(237, 28, 36, 0.45) !important;
    color: #ffc5c7 !important;
}

body.gwt-offer-open {
    overflow: hidden !important;
}

/* ========== MOBILE: ONLY FORM — CENTERED EQUAL SPACE ========== */
@media (max-width: 991px) {
    .gwt-offer-popup {
        padding: 16px !important;
        align-items: center !important;
        justify-content: center !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .gwt-offer-popup__shell {
        width: calc(100% - 32px) !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-height: 90vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .gwt-offer-popup__dialog {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        box-sizing: border-box !important;
    }

    .gwt-offer-popup__media {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    .gwt-offer-popup__form-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 18px 20px !important;
        vertical-align: top !important;
        box-sizing: border-box !important;
    }

    .gwt-offer-popup__form-wrap h2 {
        font-size: 26px !important;
    }

    .gwt-offer-popup__cols {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
        margin-bottom: 14px !important;
    }

    .gwt-offer-popup__col,
    .gwt-offer-popup__col:first-child,
    .gwt-offer-popup__col:last-child {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
        clear: both !important;
    }
}
