/* Victoria's – Back in Stock Notifier v1.1.0 */

/* ── Trigger button ─────────────────────────────────────────── */
#vbis-wrap {
    margin-top: 18px;
    clear: both;
}

#vbis-open-modal {
    all: unset;               /* strip every theme style */
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: #25d366 !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 5px;
    cursor: pointer;
    border: none !important;
    outline: none;
    text-decoration: none;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
}

#vbis-open-modal:hover,
#vbis-open-modal:focus-visible {
    background-color: #1ebe59 !important;
    color: #fff !important;
}

#vbis-open-modal svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: #fff;
}

/* ── Modal overlay ──────────────────────────────────────────── */
#vbis-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    z-index: 99998;
    cursor: pointer;
}

/* ── Modal box ──────────────────────────────────────────────── */
#vbis-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: min(94vw, 430px);
    background: #fff;
    border-radius: 10px;
    padding: 36px 28px 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    font-family: inherit;
}

#vbis-box h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

#vbis-box > p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.55;
}

/* ── Close button ───────────────────────────────────────────── */
#vbis-close {
    all: unset;
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}

#vbis-close:hover { color: #333; }

/* ── Form fields ────────────────────────────────────────────── */
.vbis-field {
    margin-bottom: 14px;
}

.vbis-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.vbis-req { color: #e74c3c; margin-left: 2px; }
.vbis-opt { font-weight: 400; color: #888; font-size: 12px; }

.vbis-field input[type="tel"],
.vbis-field input[type="email"] {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    background: #fafafa;
    transition: border-color 0.2s;
}

.vbis-field input[type="tel"]:focus,
.vbis-field input[type="email"]:focus {
    border-color: #25d366;
    background: #fff;
    outline: none;
}

/* ── Submit button ──────────────────────────────────────────── */
#vbis-submit {
    all: unset;
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    background: #25d366;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

#vbis-submit:hover,
#vbis-submit:focus-visible { background: #1ebe59; }

#vbis-submit:disabled {
    background: #a8dfbf;
    cursor: not-allowed;
}

/* ── Response message ───────────────────────────────────────── */
#vbis-response {
    margin: 14px 0 0;
    font-size: 14px;
    min-height: 18px;
    text-align: center;
}

#vbis-response.vbis-ok  { color: #1a7a3a; }
#vbis-response.vbis-err { color: #c0392b; }
