.shisha-newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: inherit;
}

.shisha-newsletter-popup.is-visible {
    display: flex;
    animation: shisha-newsletter-fade 220ms ease-out;
}

.shisha-newsletter-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.shisha-newsletter-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    color: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    padding: 36px 28px 28px;
    box-sizing: border-box;
    animation: shisha-newsletter-pop 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shisha-newsletter-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    line-height: 1;
    background: transparent;
    border: 0;
    color: #555;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.shisha-newsletter-popup__close:hover,
.shisha-newsletter-popup__close:focus {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.shisha-newsletter-popup__headline {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    color: #1f1f1f;
}

.shisha-newsletter-popup__subheadline {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    color: #555;
}

.shisha-newsletter-popup__field {
    display: block;
    margin-bottom: 12px;
}

.shisha-newsletter-popup__field input[type="email"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shisha-newsletter-popup__field input[type="email"]:focus {
    border-color: #c89b3c;
    box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.18);
    outline: none;
}

.shisha-newsletter-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #555;
    margin-bottom: 16px;
    text-align: left;
}

.shisha-newsletter-popup__consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.shisha-newsletter-popup__hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.shisha-newsletter-popup__submit {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: #1f1f1f;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.shisha-newsletter-popup__submit:hover,
.shisha-newsletter-popup__submit:focus {
    background: #000;
    outline: none;
}

.shisha-newsletter-popup__submit[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.shisha-newsletter-popup__message {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
}

.shisha-newsletter-popup__message.is-success {
    color: #2f7d32;
}

.shisha-newsletter-popup__message.is-error {
    color: #b3261e;
}

@keyframes shisha-newsletter-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shisha-newsletter-pop {
    from { transform: translateY(12px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}

@media (max-width: 480px) {
    .shisha-newsletter-popup__dialog {
        padding: 32px 18px 22px;
        max-width: 100%;
        border-radius: 6px;
    }

    .shisha-newsletter-popup__headline {
        font-size: 20px;
    }

    .shisha-newsletter-popup__subheadline {
        font-size: 14px;
    }
}

/*
 * Footer-form feedback. We render the same message styling for inline footer
 * submissions so users get consistent confirmation copy regardless of which
 * form they used.
 */
.shisha-newsletter-footer-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.shisha-newsletter-footer-message.is-success {
    color: #2f7d32;
}

.shisha-newsletter-footer-message.is-error {
    color: #b3261e;
}
