/* TOTM Back In Stock — Frontend Form Styles */

/* ── Inline form (standard WooCommerce variable products) ─────────────────── */

.totm-bis-wrap {
    margin: 10px 0 24px;
    padding: 20px 24px;
    background: #f3ede4;
    border-radius: 8px;
    border-left: 3px solid #2c5f2e;
}

/* ── Bell icon + trigger (custom bundle layout) ───────────────────────────── */

.totm-bis-bell-wrap {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.totm-bis-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.totm-bis-bell-icon {
    flex-shrink: 0;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.totm-bis-trigger:hover .totm-bis-bell-icon {
    opacity: 1;
}

/* ── Popup ────────────────────────────────────────────────────────────────── */

.totm-bis-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 420px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.totm-bis-popup::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #e0e0e0;
}

.totm-bis-popup::after {
    content: '';
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #fff;
}

.totm-bis-popup.totm-bis-popup--open {
    display: block;
}

/* ── Shared form elements ─────────────────────────────────────────────────── */

.totm-bis-label {
    margin: 0 0 12px;
    font-size: 13px;
    color: #2c2c2c;
    font-weight: 600;
}

.totm-bis-form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.totm-bis-email {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.totm-bis-email:focus {
    outline: none;
    border-color: #2c5f2e;
    box-shadow: 0 0 0 2px rgba(44, 95, 46, 0.15);
}

.totm-bis-btn {
    padding: 0 14px;
    height: 38px;
    background: #2c5f2e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}

.totm-bis-btn:hover {
    background: #234d25;
}

.totm-bis-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.totm-bis-message {
    margin-top: 8px;
    font-size: 12px;
    min-height: 16px;
}

.totm-bis-message.success {
    color: #2c5f2e;
}

.totm-bis-message.error {
    color: #c0392b;
}

@media ( max-width: 480px ) {
    .totm-bis-popup {
        width: 300px;
    }

    .totm-bis-form-row {
        flex-direction: column;
    }

    .totm-bis-btn {
        width: 100%;
    }
}
