/* =============================================================
   WPS COMPARADOR - ESTILO COMPACTO (VERSÃO 3.7 - MOBILE SEM QUEBRAR)
   ============================================================= */

/* Container Principal */
.wps-comparison-list {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.wps-card, .wps-card * {
    box-sizing: border-box;
}

/* -----------------------------------------------------------
   CARD BASE (DESKTOP) - Forçar Linha Única
   ----------------------------------------------------------- */
.wps-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 6px 8px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    min-height: 65px;
}

/* Destaque (A Nossa Escolha) */
.wps-card.wps-featured {
    border: 2px solid #77b828;
    margin-top: 30px;
}

.wps-badge {
    position: absolute;
    top: -24px;
    left: -2px;
    background: #77b828;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px 4px 0 0;
    line-height: 1;
}

/* Colunas Gerais */
.wps-col {
    padding: 0 6px;
}

/* Linhas divisórias (finas) */
@media (min-width: 769px) {
    .wps-col:not(:last-child) {
        border-right: 1px solid #f0f0f0;
    }
}

/* -----------------------------------------------------------
   COLUNA 1: MARCA (Compacta)
   ----------------------------------------------------------- */
.wps-col-brand {
    flex: 0 0 22%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 5px;
}

/* Caixa do Logo (Ainda Menor) */
.wps-logo-box {
    width: 55px;
    height: 42px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    flex-shrink: 0;
}

.wps-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Texto ao lado do logo */
.wps-brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.wps-brand-info h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1;
    white-space: nowrap;
}

.wps-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.wps-stars {
    display: flex;
    gap: 1px;
}

.wps-stars .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    color: #ffcc00;
}

.wps-score {
    font-size: 11px;
    color: #555;
    font-weight: 600;
}

.info-i { 
    display: none;
}

/* -----------------------------------------------------------
   COLUNA 2: FEATURES (Lista)
   ----------------------------------------------------------- */
.wps-col-features {
    flex: 1;
    min-width: 0;
    padding-right: 4px !important;
}

.wps-col-features ul { 
    margin: 0; 
    padding: 0; 
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wps-col-features li {
    font-size: 11px;
    color: #444;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.wps-col-features li .dashicons {
    color: #27ae60;
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* -----------------------------------------------------------
   COLUNA 3: PAGAMENTOS
   ----------------------------------------------------------- */
.wps-col-payments {
    flex: 0 0 16%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 2px !important;
}

.wps-label {
    display: block;
    font-size: 9px;
    color: #333;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
}

.wps-icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.wps-icons-grid img {
    height: 16px;
    width: auto;
    border: 1px solid #eee;
    padding: 1px;
    border-radius: 3px;
}

.wps-pay-img { 
    max-height: 22px;
}

/* -----------------------------------------------------------
   COLUNA 4: AÇÃO (Compacta)
   ----------------------------------------------------------- */
.wps-col-action {
    flex: 0 0 22%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* Caixa de Bônus */
.wps-bonus-box {
    text-align: center;
    min-width: 65px;
    padding: 3px;
    border: 1px dashed #f39c12;
    border-radius: 4px;
    background-color: #fffaf0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wps-bonus-amount {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #f39c12;
    line-height: 1;
}

.wps-bonus-text { 
    display: block;
    font-size: 7px;
    font-weight: 700;
    color: #f39c12;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.3px;
}

.wps-gift-icon { 
    display: none;
}

/* Botões */
.wps-buttons {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 85px;
}

.wps-btn {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 7px 0;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    line-height: 1;
    transition: opacity 0.2s;
}

.wps-btn:hover {
    opacity: 0.9;
}

.wps-btn-green { 
    background-color: #00b67a; 
    color: #fff !important;
}

.wps-btn-grey { 
    background-color: #f5f5f5; 
    color: #555 !important; 
    font-size: 9px; 
    padding: 5px 0;
}

/* -----------------------------------------------------------
   MOBILE/TABLET - Mantém Layout em Linha, Apenas Reduz
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
    .wps-card {
        padding: 5px 6px;
        min-height: 55px;
    }
    
    .wps-col-brand {
        flex: 0 0 20%;
        gap: 6px;
    }
    
    .wps-logo-box {
        width: 45px;
        height: 35px;
    }
    
    .wps-brand-info h3 {
        font-size: 11px;
    }
    
    .wps-stars .dashicons {
        font-size: 10px;
        width: 10px;
        height: 10px;
    }
    
    .wps-score {
        font-size: 9px;
    }
    
    .wps-col-features li {
        font-size: 10px;
    }
    
    .wps-col-features li .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
    
    .wps-col-payments {
        flex: 0 0 14%;
    }
    
    .wps-label {
        font-size: 8px;
    }
    
    .wps-icons-grid img {
        height: 14px;
    }
    
    .wps-col-action {
        flex: 0 0 24%;
        gap: 4px;
    }
    
    .wps-bonus-box {
        min-width: 55px;
        padding: 2px;
    }
    
    .wps-bonus-amount {
        font-size: 12px;
    }
    
    .wps-bonus-text {
        font-size: 6px;
    }
    
    .wps-buttons {
        min-width: 75px;
    }
    
    .wps-btn {
        padding: 6px 0;
        font-size: 10px;
    }
    
    .wps-btn-grey {
        font-size: 8px;
        padding: 4px 0;
    }
}

/* -----------------------------------------------------------
   MOBILE PEQUENO - Ainda Menor Mas Mantém Layout
   ----------------------------------------------------------- */
@media (max-width: 480px) {
    .wps-card {
        padding: 4px 5px;
        min-height: 50px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .wps-comparison-list {
        overflow-x: auto;
    }
    
    .wps-col {
        padding: 0 4px;
    }
    
    .wps-col-brand {
        flex: 0 0 90px;
        gap: 4px;
    }
    
    .wps-logo-box {
        width: 35px;
        height: 28px;
    }
    
    .wps-brand-info h3 {
        font-size: 10px;
    }
    
    .wps-stars .dashicons {
        font-size: 8px;
        width: 8px;
        height: 8px;
    }
    
    .wps-score {
        font-size: 8px;
    }
    
    .wps-col-features {
        min-width: 150px;
    }
    
    .wps-col-features li {
        font-size: 9px;
    }
    
    .wps-col-features li .dashicons {
        font-size: 10px;
        width: 10px;
        height: 10px;
        margin-right: 3px;
    }
    
    .wps-col-payments {
        flex: 0 0 80px;
    }
    
    .wps-label {
        font-size: 7px;
        margin-bottom: 2px;
    }
    
    .wps-icons-grid img {
        height: 12px;
    }
    
    .wps-col-action {
        flex: 0 0 100px;
        gap: 3px;
    }
    
    .wps-bonus-box {
        min-width: 45px;
        padding: 2px;
    }
    
    .wps-bonus-amount {
        font-size: 11px;
    }
    
    .wps-bonus-text {
        font-size: 5px;
    }
    
    .wps-buttons {
        min-width: 65px;
    }
    
    .wps-btn {
        padding: 5px 0;
        font-size: 9px;
    }
    
    .wps-btn-grey {
        font-size: 7px;
        padding: 4px 0;
    }
    
    .wps-badge {
        font-size: 8px;
        padding: 3px 6px;
        top: -18px;
    }
}