/**
 * CSS para a parte pública do plugin Tabela de Medidas
 */

/* Estilo do botão */
button.tabela-medidas-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background-color: #d2b884 !important;
    border: 1px solid #d2b884 !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    margin: 10px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: #000000 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

button.tabela-medidas-button:hover {
    background-color: #ffffff !important;
    border-color: #d2b884 !important;
    color: #000000 !important;
}

.tabela-medidas-svg-icon {
    stroke: currentColor !important;
    width: 16px !important;
    height: 16px !important;
    margin-right: 0 !important;
    vertical-align: middle !important;
}

.tabela-medidas-text {
    vertical-align: middle !important;
}

/* Estilo do overlay e popup */
.tabela-medidas-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: tabela-medidas-fadein 0.3s;
}

.tabela-medidas-overlay.active {
    display: flex;
}

.tabela-medidas-popup {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.tabela-medidas-overlay.active .tabela-medidas-popup {
    transform: scale(1);
    opacity: 1;
}

.tabela-medidas-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #000;
    color: #fff;
    border-radius: 10px 10px 0 0;
}

.tabela-medidas-header h2 {
    margin: 0;
    font-size: 22px;
    color: #fff;
    font-weight: 600;
}

.tabela-medidas-close {
    background-color: #d2b884 !important;
    border: none !important;
    font-size: 22px !important;
    cursor: pointer !important;
    color: #000 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    font-weight: 300 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.tabela-medidas-close:hover {
    background-color: #ffffff !important;
    color: #000 !important;
    transform: scale(1.1) !important;
}

.tabela-medidas-content {
    padding: 30px;
}

/* Estilo da tabela - reforçado com maior especificidade */
body .tabela-medidas-table-wrap {
    overflow-x: auto;
    margin-bottom: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.05) !important;
}

body .tabela-medidas-popup .tabela-medidas-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    font-size: 15px !important;
    margin: 0 !important;
}

body .tabela-medidas-popup .tabela-medidas-table th, 
body .tabela-medidas-popup .tabela-medidas-table td {
    padding: 15px !important;
    text-align: center !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    vertical-align: middle !important;
}

body .tabela-medidas-popup .tabela-medidas-table th {
    background-color: #d2b884 !important;
    color: #000 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 14px !important;
}

body .tabela-medidas-popup .tabela-medidas-table th:first-child {
    border-top-left-radius: 8px !important;
}

body .tabela-medidas-popup .tabela-medidas-table th:last-child {
    border-top-right-radius: 8px !important;
}

body .tabela-medidas-popup .tabela-medidas-table tr:last-child td {
    border-bottom: none !important;
}

body .tabela-medidas-popup .tabela-medidas-table tr:nth-child(even) {
    background-color: rgba(210, 184, 132, 0.05) !important;
}

body .tabela-medidas-popup .tabela-medidas-table tr:hover {
    background-color: rgba(210, 184, 132, 0.1) !important;
}

/* Estilo das instruções */
.tabela-medidas-instrucoes2 {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.05);
}

.tabela-medidas-instrucoes2 h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    color: #000;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.tabela-medidas-instrucoes h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #d2b884;
}

.tabela-medidas-nota {
    margin-top: 0;
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.tabela-medidas-como-medir {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tabela-medidas-como-medir li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    line-height: 1.6;
}

.tabela-medidas-como-medir li:last-child {
    border-bottom: none;
}

.medida-icone {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    background-color: #d2b884;
    color: #000;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
}

.medida-titulo {
    font-weight: 600;
    color: #000;
}

.medida-descricao {
    color: #666;
}

/* Animações */
@keyframes tabela-medidas-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsividade */
@media screen and (max-width: 600px) {
    .tabela-medidas-popup {
        width: 95%;
        max-height: 95vh;
	}
    
    .tabela-medidas-header {
        padding: 15px 20px;
    }
    
    .tabela-medidas-header h2 {
        font-size: 18px;
    }
    
    .tabela-medidas-content {
        padding: 20px;
    }
    
    .tabela-medidas-table th, 
    .tabela-medidas-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tabela-medidas-instrucoes2 {
        padding: 20px;
    }
    
    .tabela-medidas-como-medir li {
        flex-direction: column;
    }
    
    .medida-icone {
        margin-bottom: 5px;
    }
}

	/* CONTAINER GERAL */
.uvcare-medidas-container {
    font-family: inherit;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ------------------- */
/* COMO MEDIR           */
/* ------------------- */

.uvcare-como-medir h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.uvcare-aviso {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.uvcare-lista-medidas {
    margin: 0;
    padding: 0;
    list-style: none;
}

.uvcare-lista-medidas li {
    position: relative;
    padding-left: 42px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Bullet redondo bege com V — APLICADO AQUI TAMBÉM */
.uvcare-lista-medidas li::before {
    content: "✓";
    font-size: 14px;
    font-weight: 700;
    color: #000;
    background: #d2b884;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uvcare-medida-titulo {
    font-weight: 600;
    margin-right: 6px;
}

/* ------------------- */
/* DICAS UV.CARE        */
/* ------------------- */

.uvcare-dicas h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.uvcare-dicas-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uvcare-dicas-lista li {
    position: relative;
    padding-left: 42px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Bullet igual ao das medidas */
.uvcare-dicas-lista li::before {
    content: "✓";
    font-size: 14px;
    font-weight: 700;
    color: #000;
    background: #d2b884;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}