/* Woo Custom Cart Styles - CLEAN VERSION */

/* Change Variation Button */
.wcc-change-variation-btn {
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    display: inline-block !important;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
}

.wcc-change-variation-btn:hover {
    background: #c0392b !important;
    color: white !important;
}

.wcc-current-variation {
    font-size: 13px;
    margin: 5px 0;
}

.wcc-variation-info {
    color: #666;
    margin: 2px 0;
    font-size: 12px;
}

.wcc-attribute-label {
    font-weight: 600;
    color: #333;
}

.wcc-attribute-value {
    color: #666;
}

.wcc-change-button-wrapper {
    margin-top: 5px;
}

/* Modal Overlay */
.wcc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.wcc-modal-overlay.active {
    display: flex;
}

/* Modal Content */
.wcc-modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Header */
.wcc-modal-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.wcc-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

.wcc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wcc-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Modal Body */
.wcc-modal-body {
    padding: 20px 25px;
}

.wcc-product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.wcc-brand-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Variation Options */
.wcc-variations-container {
    margin-bottom: 20px;
}

.wcc-variation-option {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wcc-variation-option:hover {
    border-color: #bbb;
}

.wcc-variation-option.selected {
    border-color: #e74c3c;
    background: #fff5f5;
}

.wcc-variation-option.disabled {
    background: #f9f9f9;
    border-color: #e5e5e5;
    cursor: not-allowed;
    opacity: 0.6;
}

.wcc-variation-name {
    display: inline-block;
    padding: 4px 12px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.wcc-variation-option.selected .wcc-variation-name {
    background: #e74c3c;
}

.wcc-variation-prices {
    margin-bottom: 8px;
}

.wcc-regular-price {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
    margin-right: 8px;
}

.wcc-sale-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 15px;
}

.wcc-stock-info {
    font-size: 12px;
    color: #27ae60;
    font-weight: 500;
}

.wcc-stock-info.out-of-stock {
    color: #e74c3c;
}

/* Loading State */
.wcc-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.wcc-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Footer */
.wcc-modal-footer {
    padding: 15px 25px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wcc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wcc-btn-cancel {
    background: #95a5a6;
    color: white;
}

.wcc-btn-cancel:hover {
    background: #7f8c8d;
}

.wcc-btn-confirm {
    background: #e74c3c;
    color: white;
}

.wcc-btn-confirm:hover {
    background: #c0392b;
}

.wcc-btn-confirm:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Success/Error Messages */
.wcc-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.wcc-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcc-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcc-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .wcc-modal-header,
    .wcc-modal-body,
    .wcc-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .wcc-variation-option {
        padding: 12px;
    }
    
    .wcc-modal-footer {
        flex-direction: column-reverse;
    }
    
    .wcc-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .wcc-change-variation-btn {
        display: block;
        margin: 5px 0;
        margin-left: 0;
    }
}