/* ── Birdnest Add to Cart Widget ── */

.bn-atc-widget {
    font-family: inherit;
}

/* ── Attribute Groups ── */
.bn-atc-attr-group {
    margin-bottom: 20px;
}

.bn-atc-attr-label {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #1B4332;
}

.bn-atc-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bn-atc-attr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1.5px solid #D1D5DB;
    border-radius: 25px;
    background: #FFFFFF;
    color: #1B4332;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    white-space: nowrap;
    outline: none;
}

.bn-atc-attr-btn:hover {
    border-color: #9CA3AF;
}

.bn-atc-attr-btn.active {
    border-color: #1B4332;
    border-width: 2px;
    background-color: #1B4332;
    color: #FFFFFF;
    font-weight: 600;
}

.bn-atc-attr-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ── Actions Row (Quantity + Button) ── */
.bn-atc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

/* ── Quantity Selector ── */
.bn-atc-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #D1D5DB;
    border-radius: 50px;
    overflow: hidden;
    flex-shrink: 0;
}

.bn-atc-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    border: none;
    background: transparent;
    color: #1B4332;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.bn-atc-qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.bn-atc-qty-input {
    width: 36px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1B4332;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0;
    outline: none;
}

.bn-atc-qty-input::-webkit-outer-spin-button,
.bn-atc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Add to Cart Button ── */
.bn-atc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    background-color: #1B4332;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.bn-atc-button:hover {
    background-color: #2D6A4F;
}

.bn-atc-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.bn-atc-button.added {
    background-color: #2D6A4F;
}

/* ── Feedback Message ── */
.bn-atc-message {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.bn-atc-message.success {
    background: #D1FAE5;
    color: #065F46;
}

.bn-atc-message.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .bn-atc-actions {
        flex-direction: row;
    }

    .bn-atc-attr-options {
        gap: 8px;
    }

    .bn-atc-attr-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 60px;
    }

    .bn-atc-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}
