/* Estilos principais do plugin */
.wcml-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Cabeçalho estilo Mercado Livre */
.wcml-header {
    background-color: #fff159;
    padding: 12px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-radius: 6px 6px 0 0;
}

.wcml-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.wcml-logo {
    font-size: 24px;
    font-weight: bold;
    color: #2d3277;
}

.wcml-logo span {
    color: #3483fa;
}

.wcml-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wcml-user-menu i {
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.wcml-page-title {
    font-size: 22px;
    font-weight: 600;
    margin: 20px 0;
    color: #333;
}

/* Card de pedido */
.wcml-order-card {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.wcml-order-header {
    background-color: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wcml-order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wcml-order-date {
    font-size: 14px;
    color: #666;
}

.wcml-order-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Status do pedido */
.wcml-order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.wcml-status-entregue {
    background-color: #d4edda;
    color: #155724;
}

.wcml-status-processando {
    background-color: #cce5ff;
    color: #004085;
}

.wcml-status-aguardando {
    background-color: #fff3cd;
    color: #856404;
}

.wcml-status-pendente {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.wcml-status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
}

/* Item do produto */
.wcml-product-item {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wcml-product-item:last-child {
    border-bottom: none;
}

.wcml-product-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcml-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wcml-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 25%, #f0f0f0 25%, #f0f0f0 50%, #e0e0e0 50%, #e0e0e0 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
}

.wcml-product-details {
    flex: 1;
    min-width: 250px;
}

.wcml-product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
}

.wcml-product-store {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.wcml-product-store a {
    color: #3483fa;
    text-decoration: none;
}

.wcml-product-store a:hover {
    text-decoration: underline;
}

.wcml-product-quantity {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.wcml-product-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.wcml-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Botões */
.wcml-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    text-align: center;
}

.wcml-btn i {
    font-size: 14px;
}

.wcml-btn-primary {
    background-color: #3483fa;
    color: white;
}

.wcml-btn-primary:hover {
    background-color: #2968c8;
    color: white;
}

.wcml-btn-secondary {
    background-color: transparent;
    color: #3483fa;
    border: 1px solid #3483fa;
}

.wcml-btn-secondary:hover {
    background-color: rgba(52, 131, 250, 0.1);
}

/* Footer do card */
.wcml-order-footer {
    background-color: #f8f9fa;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wcml-total-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.wcml-total-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.wcml-order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mensagens */
.wcml-login-required,
.wcml-sem-compras {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.wcml-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wcml-message i {
    font-size: 48px;
    color: #3483fa;
    margin-bottom: 20px;
}

.wcml-message h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.wcml-message p {
    color: #666;
    margin-bottom: 20px;
}

/* Notificações */
.wcml-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    max-width: 300px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.wcml-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.wcml-notification-success {
    background-color: #28a745;
}

.wcml-notification-error {
    background-color: #dc3545;
}

.wcml-notification-info {
    background-color: #17a2b8;
}

/* Paginação */
.wcml-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.wcml-pagination-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wcml-pagination-btn:hover {
    background-color: #f8f9fa;
}

.wcml-pagination-btn.active {
    background-color: #3483fa;
    color: white;
    border-color: #3483fa;
}

/* Responsividade */
@media (max-width: 768px) {
    .wcml-order-header,
    .wcml-order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wcml-product-details {
        min-width: 200px;
    }
    
    .wcml-order-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .wcml-order-actions .wcml-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wcml-header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .wcml-product-item {
        flex-direction: column;
    }
    
    .wcml-product-image {
        width: 100%;
        height: 150px;
    }
    
    .wcml-btn {
        padding: 10px;
        font-size: 13px;
    }
}