/* Cart Management Styles */

/* Product Selector */
.ecom-ai-cart-selector {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 10px 0;
}

.ecom-ai-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.ecom-ai-product-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.ecom-ai-product-item:hover {
    border-color: var(--efs-primary, #22a7f0);
    box-shadow: 0 2px 8px rgba(34, 167, 240, 0.1);
}

.ecom-ai-product-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.ecom-ai-product-price {
    font-weight: 700;
    color: var(--efs-primary, #22a7f0);
    margin: 0 15px;
}

.ecom-ai-btn-select {
    background: var(--efs-primary, #22a7f0);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.ecom-ai-btn-select:hover {
    background: #1a8cd8;
    transform: translateY(-1px);
}

/* Attribute Selector */
.ecom-ai-attr-selector {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 10px 0;
}

.ecom-ai-attr-group {
    margin-bottom: 12px;
}

.ecom-ai-attr-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.ecom-ai-attr-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.ecom-ai-attr-select:focus {
    outline: none;
    border-color: var(--efs-primary, #22a7f0);
}

.ecom-ai-btn-confirm-attr {
    width: 100%;
    background: var(--efs-primary, #22a7f0);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.2s;
}

.ecom-ai-btn-confirm-attr:hover {
    background: #1a8cd8;
}

/* Confirmation Buttons */
.ecom-ai-cart-confirm {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
}

.ecom-ai-confirm-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ecom-ai-btn-yes,
.ecom-ai-btn-no {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.ecom-ai-btn-yes {
    background: #28a745;
    color: white;
}

.ecom-ai-btn-yes:hover {
    background: #218838;
    transform: translateY(-1px);
}

.ecom-ai-btn-no {
    background: #dc3545;
    color: white;
}

.ecom-ai-btn-no:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Cart Options */
.ecom-ai-cart-options {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
}

.ecom-ai-option-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ecom-ai-btn-continue,
.ecom-ai-btn-goto-cart {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.ecom-ai-btn-continue {
    background: var(--efs-primary, #22a7f0);
    color: white;
}

.ecom-ai-btn-continue:hover {
    background: #1a8cd8;
}

.ecom-ai-btn-goto-cart {
    background: #28a745;
    color: white;
}

.ecom-ai-btn-goto-cart:hover {
    background: #218838;
}

/* Loading Indicator */
.ecom-ai-loading {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.ecom-ai-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {

    .ecom-ai-confirm-buttons,
    .ecom-ai-option-buttons {
        flex-direction: column;
    }

    .ecom-ai-btn-yes,
    .ecom-ai-btn-no,
    .ecom-ai-btn-continue,
    .ecom-ai-btn-goto-cart {
        width: 100%;
    }
}