.aacb-wrapper {
    display: inline-block;
    position: relative;
    margin: 5px 0;
}

/* Contenedor de controles */
.aacb-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos para variaciones */
.aacb-variations {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.aacb-variation-field {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.aacb-variation-field:last-child {
    margin-bottom: 0;
}

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

.aacb-variation-select {
    width: 100%;
    max-width: 300px;
    height: 35px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.aacb-variation-select:focus {
    outline: none;
    border-color: #0073aa;
}

.aacb-variation-select:disabled {
    background: #f7f7f7;
    color: #999;
    cursor: not-allowed;
}

/* Estilos para el selector de cantidad */
.aacb-quantity {
    flex-shrink: 0;
}

.aacb-quantity label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.aacb-quantity-input {
    display: flex;
    align-items: center;
}

.aacb-qty {
    width: 50px;
    height: 35px;
    padding: 0 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 0;
    -moz-appearance: textfield;
}

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

.aacb-qty-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #ddd;
    background: #f7f7f7;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.aacb-qty-btn:hover {
    background: #e7e7e7;
}

.aacb-qty-btn.minus {
    border-radius: 3px 0 0 3px;
}

.aacb-qty-btn.plus {
    border-radius: 0 3px 3px 0;
}

/* Estilos del botón */
.aacb-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 35px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.aacb-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aacb-text, .aacb-loading {
    display: inline-block;
}

.aacb-loading {
    margin-left: 8px;
}

/* Mensajes */
.aacb-message {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    z-index: 100;
}

.aacb-message.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.aacb-message.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}


/* Responsive */
@media (max-width: 768px) {
    .aacb-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .aacb-variations {
        margin-bottom: 15px;
    }

    
    .aacb-variation-field label {
        font-size: 12px;
    }
    
    .aacb-variation-select {
        height: 30px;
        font-size: 13px;
        max-width: 100%;
    }

    .aacb-button {
        padding: 0 15px;
        font-size: 13px;
        height: 35px;
        width: 100%;
    }
    
    .aacb-message {
        font-size: 13px;
    }
    
    .aacb-qty {
        width: 40px;
        height: 30px;
    }
    
    .aacb-qty-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .aacb-quantity {
        align-self: center;
        margin-bottom: 10px;
    }
} 