/**
 * Estilos para Tabela de Medidas
 * Tema Kadoche
 */

/* Container do popup */
.wpcsc-popup {
    background: white;
    padding: 0;
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.mfp-wpcsc .wpcsc-popup > div{
    padding: 0 !important;
}

/* Título da tabela */
.wpcsc-size-chart-title {
    background: #333;
    color: #fff !important;
    padding: 20px 30px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Conteúdo da tabela */
.wpcsc-size-chart-content {
    padding: 30px;
}

/* Texto acima da tabela */
.wpcsc-size-chart-above-text {
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Tabela */
.wpcsc-size-chart table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cabeçalho da tabela */
.wpcsc-size-chart table thead {
    background: #f5f5f5;
}

.wpcsc-size-chart table thead tr th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    border-bottom: 2px solid #ddd;
}

/* Corpo da tabela */
.wpcsc-size-chart table tbody tr {
    transition: background-color 0.2s ease;
}

.wpcsc-size-chart table tbody tr:hover {
    background-color: #fafafa;
}

.wpcsc-size-chart table tbody tr td {
    padding: 12px 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #eee;
}

/* Primeira coluna (tamanho) em destaque */
.wpcsc-size-chart table tbody tr td:first-child {
    font-weight: 700;
    color: #333;
    background: #f9f9f9;
}

/* Última linha sem borda */
.wpcsc-size-chart table tbody tr:last-child td {
    border-bottom: none;
}

/* Texto abaixo da tabela */
.wpcsc-size-chart-under-text {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.5;
}

/* Botão de fechar */
.mfp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #fff !important;
    color: #000 !important;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mfp-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.mfp-wpcsc .mfp-close:before{
    content: "×";
}

/* Overlay do popup */
.mfp-bg {
    background: rgba(0, 0, 0, 0.8);
}

/* Animação de entrada */
.mfp-with-anim {
    opacity: 0;
    transition: all 0.3s ease;
}

.mfp-ready .mfp-with-anim {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 768px) {
    .wpcsc-popup {
        max-width: 95%;
    }
    
    .wpcsc-size-chart-title {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
    
    .wpcsc-size-chart-content {
        padding: 20px 15px;
    }
    
    .wpcsc-size-chart table thead tr th {
        padding: 10px 5px;
        font-size: 0.75rem;
    }
    
    .wpcsc-size-chart table tbody tr td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .wpcsc-size-chart-under-text {
        font-size: 0.8rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .wpcsc-size-chart table thead tr th,
    .wpcsc-size-chart table tbody tr td {
        padding: 8px 3px;
        font-size: 0.7rem;
    }
}
