/* Order Details Shortcode Styles */

.mgh-order-accounts {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
}

.mgh-order-accounts h3 {
    margin: 0 0 2rem 0;
    color: #333;
    font-size: 2.2rem;
    text-align: center;
    border-bottom: 3px solid #ff9100;
    padding-bottom: 0.75rem;
}

.mgh-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 1.3rem;
    border-radius: 10px;
    overflow: hidden;
}

.mgh-order-table thead {
    background: #ff9100;
    color: white;
}

.mgh-order-table th,
.mgh-order-table td {
    padding: 1.5rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.mgh-order-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.mgh-order-table tbody tr:hover {
    background: #f8f9fa;
}

.mgh-order-table td {
    color: #555;
    font-size: 1.2rem;
}

.mgh-order-table thead th:first-child {
    border-top-left-radius: 10px;
}

.mgh-order-table thead th:last-child {
    border-top-right-radius: 10px;
}

.mgh-order-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.mgh-order-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.mgh-order-table tbody tr:last-child td {
    border-bottom: none;
}

/* Estilos específicos para campos */
.password-field {
    font-family: monospace;
    background: #f1f1f1;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.3rem;
    border: 1px solid #ddd;
}

.type-badge {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.type-registro {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.type-badge.type-renovación {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ff9800;
}

.mgh-processing-message {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    border-left: 5px solid #ff9100;
}

.mgh-processing-message h3 {
    color: #ff9100;
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 600;
}

.mgh-processing-message p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-size: 1.4rem;
}

/* Vista vertical para móviles */
.mgh-order-card {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mgh-order-accounts {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .mgh-order-accounts h3 {
        font-size: 1.8rem;
    }
    
    /* Ocultar tabla normal en móviles */
    .mgh-order-table {
        display: none;
    }
    
    /* Mostrar vista de tarjetas en móviles */
    .mgh-order-card {
        display: block;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 2rem;
        overflow: hidden;
        border: 1px solid #ddd;
    }
    
    .mgh-order-card-header {
        background: #ff9100;
        color: white;
        padding: 1rem 1.5rem;
        font-size: 1.3rem;
        font-weight: 600;
        text-align: center;
    }
    
    .mgh-order-card-body {
        padding: 0;
    }
    
    .mgh-order-card-row {
        display: flex;
        border-bottom: 1px solid #eee;
        min-height: 60px;
        align-items: stretch;
    }
    
    .mgh-order-card-row:last-child {
        border-bottom: none;
    }
    
    .mgh-order-card-label {
        flex: 0 0 40%;
        background: #f8f9fa;
        padding: 1.2rem 1rem;
        font-weight: 600;
        font-size: 1.1rem;
        color: #333;
        border-right: 1px solid #ddd;
    }
    
    .mgh-order-card-value {
        flex: 1;
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
        color: #555;
    }
    
    .mgh-processing-message {
        margin: 1rem;
        padding: 2rem;
    }
    
    .mgh-processing-message h3 {
        font-size: 1.6rem;
    }
    
    .mgh-processing-message p {
        font-size: 1.2rem;
    }
    
    .type-badge {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }
    
    .password-field {
        font-size: 1.1rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .mgh-order-card-label {
        font-size: 1rem;
        padding: 1rem 0.8rem;
    }
    
    .mgh-order-card-value {
        font-size: 1rem;
        padding: 1rem 0.8rem;
    }
    
    .password-field {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    
    .mgh-processing-message {
        padding: 1.5rem;
    }
    
    .mgh-processing-message h3 {
        font-size: 1.4rem;
    }
    
    .mgh-processing-message p {
        font-size: 1.1rem;
    }
}