/**
 * UruShop Back In Stock — Frontend Styles
 * BEM naming: .urushop-bis__element--modifier
 */

.urushop-bis {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f0faf5 0%, #e8f5ee 100%);
    border: 1px solid #c8e6d5;
    border-radius: 12px;
    text-align: center;
}

.urushop-bis__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #00A86B;
    border-radius: 50%;
    color: #fff;
}

.urushop-bis__icon svg {
    width: 24px;
    height: 24px;
}

.urushop-bis__heading {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1B4332;
    line-height: 1.3;
}

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

.urushop-bis__field {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.urushop-bis__input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.urushop-bis__input:focus {
    border-color: #00A86B;
    box-shadow: 0 0 0 2px rgba(0, 168, 107, 0.15);
}

.urushop-bis__button {
    padding: 12px 24px;
    background: #00A86B;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.urushop-bis__button:hover {
    background: #008f5a;
}

.urushop-bis__button:active {
    transform: scale(0.97);
}

.urushop-bis__button:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.urushop-bis__optin {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 400px;
    margin: 10px auto 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
}

.urushop-bis__optin input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #00A86B;
}

.urushop-bis__message {
    margin: 12px auto 0;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 400px;
}

.urushop-bis__message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.urushop-bis__message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Subscribed state: hide form, show message */
.urushop-bis--subscribed .urushop-bis__form {
    display: none;
}

.urushop-bis--subscribed .urushop-bis__text {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .urushop-bis {
        padding: 20px 16px;
    }

    .urushop-bis__field {
        flex-direction: column;
    }

    .urushop-bis__button {
        width: 100%;
        padding: 14px;
    }

    .urushop-bis__heading {
        font-size: 16px;
    }
}
