/**
 * PegaiZap Licenses - Estilos
 */

/* ========================================
   CHECKOUT CLÁSSICO - CENTRALIZADO
   ======================================== */

.woocommerce-checkout {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce form.checkout {
    max-width: 100%;
}

.woocommerce .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    flex: 1;
    min-width: 300px;
}

#order_review_heading,
#order_review {
    max-width: 100%;
}

/* ========================================
   CAMPO HWID NO CHECKOUT
   ======================================== */
.dzl-hwid-field input {
    font-family: 'Courier New', Consolas, monospace !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dzl-hwid-field.woocommerce-validated input {
    border-color: #28a745 !important;
}

.dzl-hwid-field.woocommerce-invalid input {
    border-color: #dc3545 !important;
}

.dzl-hwid-field.dzl-hwid-exists input {
    border-color: #ffc107 !important;
    background-color: #fffbeb !important;
}

.dzl-hwid-message {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

/* Descrição/tooltip do campo HWID */
.dzl-hwid-field .description,
.dzl-hwid-field span.description,
#PegaiZap_hwid_field .description,
#PegaiZap_hwid_field span.description {
    display: block !important;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f0f7ff;
    border-left: 4px solid #25D366;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    font-style: italic;
}

.dzl-hwid-field .optional,
#PegaiZap_hwid_field .optional {
    display: none;
}

/* Página Minhas Licenças */
.dzl-licenses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.dzl-licenses-table th,
.dzl-licenses-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.dzl-licenses-table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.dzl-licenses-table tbody tr:hover {
    background: #f9f9f9;
}

.dzl-license-key {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 11px;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    word-break: break-all;
    max-width: 200px;
}

.dzl-hwid {
    font-family: 'Courier New', Consolas, monospace;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.dzl-status-ativa {
    color: #28a745;
    font-weight: bold;
}

.dzl-status-expirada {
    color: #dc3545;
    font-weight: bold;
}

.dzl-status-expirando {
    color: #e67e00;
    font-weight: bold;
}

.dzl-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    border: none;
    margin: 2px;
}

.dzl-btn-copy {
    background: #6c757d;
    color: white;
}

.dzl-btn-copy:hover {
    background: #5a6268;
    color: white;
}

.dzl-btn-renew {
    background: #25D366;
    color: white;
}

.dzl-btn-renew:hover {
    background: #1da851;
    color: white;
}

.dzl-empty {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.dzl-empty h3 {
    margin-top: 0;
    color: #666;
}

/* Responsivo */
@media (max-width: 768px) {
    .dzl-licenses-table {
        font-size: 14px;
    }
    
    .dzl-licenses-table th,
    .dzl-licenses-table td {
        padding: 8px;
    }
    
    .dzl-license-key {
        font-size: 10px;
        max-width: 150px;
    }
    
    .dzl-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
