/* ==========================================================================
   Consult surprise modal — matched to ag777.com structure
   ========================================================================== */

.surprise {
    position: fixed;
    z-index: 100050;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.popup-surprise {
    position: absolute;
    inset: 0;
    background-color: #00000082;
    backdrop-filter: blur(3px);
}

.form-surprise {
    position: relative;
    z-index: 1;
    width: min(860px, 92vw);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    background: #f7bc13;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    overflow: visible;
}

.form-surprise form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    font-size: 12px;
    flex-direction: column;
    padding: 1.75rem 1rem;
}

.box-form-surprise {
    width: 80%;
    max-width: 320px;
}

.box-form-surprise-background {
    background-color: #fff;
    border-radius: 30px;
    border: 2px solid #aeaeae;
    position: relative;
    padding: 1.75rem 0.75rem 2.75rem;
}

.gp-item-input-form {
    display: flex;
    width: 100%;
    justify-content: center;
}

.surprise input {
    padding: 5px;
    color: #777;
    width: 70%;
    height: 45px;
    line-height: 45px;
    margin: 10px 0;
    font-weight: bold;
    border: none;
    border-bottom: 2px solid #c4c4c4;
    background: transparent;
    outline: none;
    text-align: center;
}

.surprise input:focus {
    border-bottom-color: #3c3c3c;
}

.surprise input:disabled {
    opacity: 0.65;
}

.sendFormSuprise {
    padding: 5px 40px;
    background-color: #3c3c3c;
    color: #fff;
    border: 1px solid #e8e8e8;
    transition: 0.3s;
    width: 70%;
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    border-radius: 50px;
    font-size: 16px;
    height: 40px;
    font-weight: bold;
    cursor: pointer;
}

.sendFormSuprise:hover:not(:disabled) {
    background-color: #16a34a;
    color: #fff;
}

.sendFormSuprise:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Category promo modal (blog → shop category) */
.category-promo-modal__content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding: 1.75rem 1rem;
}

.category-promo-modal .box-form-surprise {
    width: 85%;
    max-width: 340px;
}

.category-promo-modal__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem 2.75rem;
    gap: 0.55rem;
}

.category-promo-modal__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: #6b4e00;
    background: #ffe08a;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
}

.category-promo-modal__title {
    margin: 0.35rem 0 0;
    font-size: 18px;
    font-weight: 900;
    color: #181e25;
    line-height: 1.45;
}

.category-promo-modal__hint {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #67788e;
    line-height: 1.7;
    max-width: 240px;
}

.category-promo-modal__cta {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-promo-modal .image-surprise {
    object-fit: contain;
    background: #fff3c4;
    padding: 0.75rem;
}

@media (max-width: 767px) {
    .category-promo-modal__content {
        width: 100%;
        order: 2;
        padding: 1.25rem 0.75rem 1.75rem;
    }

    .category-promo-modal .box-form-surprise {
        width: 90%;
        max-width: none;
    }

    .category-promo-modal__title {
        font-size: 16px;
    }
}

.close-surprise {
    position: absolute;
    left: -10px;
    top: -10px;
    z-index: 2;
    background-color: #fff;
    color: red;
    width: 28px;
    height: 28px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-size: 20px;
    line-height: 1;
    border: 2px solid red;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
}

.close-surprise:hover {
    background-color: red;
    color: #fff;
}

.image-surprise {
    width: 50%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0 10px 10px 0;
    display: block;
}

.image-popupMobile {
    display: none;
}

.surprise-msg {
    width: 70%;
    margin: 0.35rem auto 0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
}

.surprise-msg--error {
    color: #dc2626;
}

.surprise-msg--success {
    color: #16a34a;
}

@media (max-width: 767px) {
    .form-surprise {
        width: min(420px, 94vw);
        flex-direction: column;
        gap: 0;
        overflow: hidden;
    }

    .form-surprise form {
        width: 100%;
        order: 2;
        padding: 1.25rem 0.75rem 1.75rem;
        font-size: 14px;
    }

    .box-form-surprise {
        width: 88%;
        max-width: none;
    }

    .image-surprise {
        display: none;
    }

    .image-popupMobile {
        display: block;
        order: 1;
        width: 100% !important;
        height: auto;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
    }

    .close-surprise {
        left: 8px;
        top: 8px;
        background-color: red;
        color: #fff;
    }

    .surprise input {
        width: 80%;
    }

    .sendFormSuprise {
        width: 80%;
    }
}

/* Sticky category promo on blog post — thin bottom bar */
.blog-promo-bar {
    position: fixed;
    z-index: 100040;
    inset-inline: 0;
    bottom: 0.65rem;
    width: min(520px, calc(100% - 1.25rem));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.28rem 0.35rem 0.28rem 0.28rem;
    border-radius: 999px;
    background: #f7bc13;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-promo-bar:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    color: inherit;
}

.blog-promo-bar__media {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffe08a;
}

.blog-promo-bar__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 0;
}

.blog-promo-bar__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
}

.blog-promo-bar__eyebrow {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #6b4e00;
    opacity: 0.85;
}

.blog-promo-bar__title {
    font-size: 12px;
    font-weight: 800;
    color: #181e25;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.blog-promo-bar__cta {
    flex-shrink: 0;
    margin-top: 0;
    align-self: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #3c3c3c;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.blog-promo-bar:hover .blog-promo-bar__cta {
    background: #16a34a;
}

@media (max-width: 767px) {
    .blog-promo-bar {
        bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 0.85rem);
        max-width: none;
        border-radius: 14px;
        min-height: 42px;
    }

    .blog-promo-bar__eyebrow {
        display: none;
    }

    body.front-page:has(.blog-promo-bar) .floating-actions {
        bottom: 4.75rem;
    }
}

html.dark .blog-promo-bar {
    background: #f7bc13;
}

html.dark .blog-promo-bar__title {
    color: #181e25;
}

html.dark .blog-promo-bar__eyebrow {
    color: #6b4e00;
}
