/* WooCommerce Variable Add to Cart - Estilos */

* {
    box-sizing: border-box;
}

.wc-variation-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wc-variation-header {
    background-color: #4a5a6a;
    color: #ffffff;
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
}

.wc-variations-wrapper {
    max-height: 500px;
    overflow-y: auto;
}

.wc-variations-wrapper::-webkit-scrollbar {
    width: 8px;
}

.wc-variations-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.wc-variations-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.wc-variations-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.wc-variation-item {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.wc-variation-item:last-of-type {
    border-bottom: none;
}

.wc-variation-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-info-icon {
    color: #2196F3;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.wc-info-icon:hover {
    transform: scale(1.2);
}

.wc-variation-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.wc-stock-info {
    font-size: 13px;
    color: #10a37f;
    font-weight: 600;
    margin-bottom: 8px;
}

.wc-variation-description {
    background-color: #f8f9fa;
    border-left: 3px solid #2196F3;
    padding: 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    border-radius: 4px;
    line-height: 1.5;
}

.wc-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 12px;
}

.wc-btn-quantity {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background-color: #e0e0e0;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wc-btn-quantity:hover:not(:disabled) {
    background-color: #d0d0d0;
}

.wc-btn-quantity:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wc-btn-quantity.wc-btn-add {
    background-color: #2196F3;
    color: #ffffff;
}

.wc-btn-quantity.wc-btn-add:hover:not(:disabled) {
    background-color: #1976D2;
}

.wc-quantity-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.wc-subtotal-section {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 2px solid #e0e0e0;
    display: none;
}

.wc-subtotal-section.show {
    display: block;
}

.wc-subtotal-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.wc-subtotal-row.wc-total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-top: 10px;
    border-top: 2px solid #ddd;
    margin-top: 10px;
}

.wc-subtotal-label {
    font-weight: 500;
}

.wc-subtotal-value {
    font-weight: 600;
}

.wc-btn-select {
    width: 100%;
    padding: 18px;
    background-color: #10a37f;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wc-btn-select:hover {
    background-color: #0d8c6a;
}

.wc-btn-select:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.wc-understand-rate {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
}

/* Loading spinner */
.wc-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: wc-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes wc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensagens de sucesso e erro */
.wc-message {
    padding: 12px 20px;
    margin: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.wc-message.show {
    display: block;
}

.wc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsivo - MOBILE */
@media (max-width: 768px) {
    .wc-variation-container {
        border-radius: 16px;
        margin: 10px;
    }
    
    .wc-variation-header {
        border-radius: 16px 16px 0 0;
    }
    
    .wc-variation-name {
        font-size: 14px;
    }
    
    .wc-variation-price {
        font-size: 13px;
    }
    
    .wc-btn-select {
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 480px) {
    .wc-variation-container {
        border-radius: 16px;
        margin: 10px;
    }
    
    .wc-variation-header {
        border-radius: 16px 16px 0 0;
        font-size: 18px;
        padding: 16px;
    }
    
    .wc-variation-name {
        font-size: 14px;
    }
    
    .wc-variation-price {
        font-size: 13px;
    }
    
    .wc-variation-item {
        padding: 16px;
    }
    
    .wc-btn-select {
        border-radius: 0 0 16px 16px;
        padding: 16px;
    }
}