.gge-overlay,
.gge-drawer {
    box-sizing: border-box;
    font-family: var(--gge-font);
}

.gge-overlay *,
.gge-drawer *,
.gge-announcement *,
.gge-product-cta *,
.gge-inline-offers * {
    box-sizing: border-box;
}

.gge-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 14, 29, 0.72);
    backdrop-filter: blur(8px);
}

.gge-overlay.is-visible {
    display: flex;
}

.gge-modal {
    position: relative;
    width: min(448px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--gge-primary), #08213f);
    color: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    padding: 32px;
}

.gge-modal::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--gge-highlight), var(--gge-accent));
}

.gge-kicker {
    margin: 0 0 8px;
    color: var(--gge-highlight);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.gge-title,
.gge-drawer__title,
.gge-product-cta h3 {
    margin: 0;
    color: inherit;
    font-family: var(--gge-heading-font);
    line-height: 1.12;
}

.gge-title {
    max-width: 360px;
    font-size: 30px;
    font-weight: 800;
}

.gge-copy,
.gge-drawer__intro,
.gge-product-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
}

.gge-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.gge-form--compact {
    margin-top: 14px;
}

.gge-form--inline {
    max-width: 540px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: var(--gge-primary);
    color: #fff;
    padding: 18px;
}

.gge-input {
    width: 100%;
    min-height: 52px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    color: var(--gge-primary);
    font: 500 15px/1.3 var(--gge-font);
    outline: none;
    padding: 0 15px;
}

.gge-input:focus {
    border-color: var(--gge-highlight);
}

.gge-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.45;
}

.gge-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--gge-highlight);
}

.gge-submit,
.gge-announcement__button,
.gge-product-cta__button,
.gge-offer-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--gge-highlight);
    color: var(--gge-primary);
    cursor: pointer;
    font: 800 14px/1 var(--gge-font);
    text-decoration: none;
}

.gge-submit {
    width: 100%;
    min-height: 52px;
}

.gge-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.gge-disclaimer {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.gge-message {
    display: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    padding: 11px 12px;
}

.gge-message.is-visible {
    display: block;
}

.gge-message.is-error {
    background: rgba(220, 38, 38, 0.2);
}

.gge-icon-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    flex: 0 0 36px;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    padding: 0;
    position: relative;
    text-indent: -9999px;
}

.gge-icon-button::before,
.gge-icon-button::after,
.gge-announcement__close::before,
.gge-announcement__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform-origin: center;
}

.gge-icon-button::before,
.gge-announcement__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.gge-icon-button::after,
.gge-announcement__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gge-icon-button span,
.gge-announcement__close span {
    display: none;
}

.gge-close,
.gge-drawer__close {
    top: 14px;
    right: 14px;
}

.gge-close {
    position: absolute;
}

.gge-drawer__close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    z-index: 3;
    background: var(--gge-primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 47, 88, 0.22);
}

.gge-screen-reader,
.gge-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.gge-announcement {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 999997;
    font-family: var(--gge-font);
    pointer-events: none;
}

.gge-announcement__inner {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    max-width: 980px;
    min-height: 58px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: var(--gge-primary);
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    padding: 10px 46px 10px 18px;
    pointer-events: auto;
}

.gge-announcement__inner span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.gge-announcement__button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
}

.gge-announcement__close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 12px;
    width: 30px;
    height: 30px;
    min-height: 30px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    padding: 0;
    text-indent: -9999px;
}

.gge-drawer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    justify-content: flex-end;
    background: rgba(4, 14, 29, 0.58);
}

.gge-drawer.is-visible {
    display: flex;
}

.gge-drawer__panel {
    position: relative;
    width: min(460px, 100%);
    height: 100%;
    overflow-y: auto;
    background: #f8fafc;
    color: var(--gge-primary);
    box-shadow: -18px 0 55px rgba(0, 0, 0, 0.24);
    padding: 34px 24px;
}

.gge-drawer .gge-kicker,
.gge-product-cta .gge-kicker {
    color: var(--gge-accent);
}

.gge-drawer__title {
    max-width: 340px;
    color: var(--gge-primary);
    font-size: 28px;
    font-weight: 800;
}

.gge-drawer__intro {
    color: var(--gge-muted);
}

.gge-offer-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.gge-offer-card {
    border: 1px solid var(--gge-border);
    border-radius: 12px;
    background: #fff;
    color: var(--gge-primary);
    padding: 16px;
}

.gge-offer-card__label {
    display: block;
    color: var(--gge-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.gge-offer-card__code {
    display: inline-block;
    margin-top: 5px;
    color: var(--gge-primary);
    font-family: var(--gge-heading-font);
    font-size: 20px;
}

.gge-offer-card p {
    margin: 10px 0 14px;
    color: #43536a;
    font-size: 14px;
    line-height: 1.55;
}

.gge-offer-card__link {
    min-height: 38px;
    padding: 0 14px;
}

.gge-drawer__form {
    margin-top: 20px;
    border-radius: 14px;
    background: var(--gge-primary);
    color: #fff;
    padding: 18px;
}

.gge-drawer__form h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.gge-inline-offers {
    font-family: var(--gge-font);
}

.gge-product-cta {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0;
    border: 1px solid var(--gge-border);
    border-radius: 12px;
    background: #fff;
    color: var(--gge-primary);
    padding: 18px;
}

.gge-product-cta h3 {
    color: var(--gge-primary);
    font-size: 20px;
}

.gge-product-cta p {
    margin: 8px 0 0;
    color: #43536a;
}

.gge-product-cta__button {
    flex: 0 0 auto;
    padding: 0 16px;
}

@media (max-width: 640px) {
    .gge-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .gge-modal {
        padding: 28px 20px 22px;
    }

    .gge-title,
    .gge-drawer__title {
        font-size: 25px;
    }

    .gge-announcement {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .gge-announcement__inner,
    .gge-product-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .gge-announcement__button,
    .gge-product-cta__button {
        width: 100%;
    }

    .gge-announcement__close {
        top: 10px;
        right: 10px;
        transform: none;
    }
}
