/* ======================================================
   BACK IN STOCK – MODAL
   ====================================================== */

#bis-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#bis-overlay[aria-hidden="false"] {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.bis-modal-open {
    overflow: hidden;
}

.bis-modal {
    position: relative;
    width: min(100%, 480px);
    max-width: 480px;
    max-height: min(85vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(8px);
    transition: transform 0.2s ease;
}

#bis-overlay[aria-hidden="false"] .bis-modal {
    transform: translateY(0);
}

.bis-modal h3,
.bis-modal__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
}

.bis-modal__desc {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.bis-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #222;
}

.bis-field {
    margin-bottom: 14px;
}

.bis-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

#bis-form input[type="email"] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#bis-form input[type="email"]:focus {
    outline: none;
    border-color: #b9926a;
    box-shadow: 0 0 0 3px rgba(185, 146, 106, 0.15);
}

.bis-field--checkbox label,
.bis-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.bis-actions {
    margin-top: 14px;
}

.bis-submit {
    position: relative;
    width: 100%;
    min-height: 46px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bis-submit[disabled] {
    cursor: not-allowed;
    opacity: 0.9;
}

.bis-submit.is-loading {
    pointer-events: none;
}

.bis-submit.is-loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    vertical-align: -3px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bis-spin 0.7s linear infinite;
}

.bis-msg {
    margin-top: 14px;
    min-height: 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bis-msg.show {
    opacity: 1;
}

.bis-msg.success {
    color: #1f7a1f;
}

.bis-msg.error {
    color: #b42318;
}

@keyframes bis-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    #bis-overlay {
        padding: 16px;
    }

    .bis-modal {
        width: 100%;
        padding: 20px 16px;
        border-radius: 14px;
    }
}