/* WSL Pro Public Styles */
.woo-short-link-box { margin: 30px 0; padding: 25px; background: #ffffff; border: 1px solid #e3e3e3; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); width: 100%; box-sizing: border-box; font-family: inherit; }
.woo-short-link-title { margin: 0 0 20px 0; font-size: 18px; font-weight: 700; color: #1a202c; }
.woo-share-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.woo-share-btn { flex: 1; min-width: 120px; padding: 12px 20px; border: none; border-radius: 8px; color: white; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; }
.woo-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0.95; }
.btn-whatsapp { background-color: #25D366; }
.btn-facebook { background-color: #1877F2; }
.woo-copy-wrapper { cursor: pointer; background: #f0f2f5; border: 2px dashed #ccd0d5; padding: 0 20px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; color: #4b4f56; transition: all 0.3s; flex: 1.5; min-width: 200px; box-sizing: border-box; }
.woo-copy-wrapper:hover { background: #e4e6eb; color: #1c1e21; border-color: #bec3c9; }
.woo-copy-wrapper.copied { background: #46b450; color: #fff; border-color: #46b450; border-style: solid; }
.woo-reward-cta { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 15px; }
.woo-reward-icon { font-size: 24px; background: #fff4e6; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; border: 1px solid #ffd8a8; }
.woo-reward-text { flex-grow: 1; }
.woo-reward-text p { margin: 0; font-size: 14px; color: #444; line-height: 1.4; }
.woo-reward-text strong { color: #d6336c; }
.woo-reward-link { font-weight: 700; color: #2271b1; text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.2s; cursor: pointer; }
.woo-reward-link:hover { border-bottom-color: #2271b1; }

/* Modals */
.woo-sl-modal { display:none; position:fixed; z-index:99999; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,0.6); backdrop-filter:blur(3px); }
.woo-sl-modal-content { background:#fff; margin:10% auto; padding:30px; border-radius:15px; width:90%; max-width:400px; position:relative; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); }
.woo-sl-close { position:absolute; right:20px; top:15px; font-size:28px; font-weight:bold; color:#ccc; cursor:pointer; }
.woo-sl-modal-header { text-align:center; margin-bottom:25px; }
.woo-sl-modal-header h2 { margin:0; color:#1a202c; font-size:24px; }
.woo-sl-input-group { margin-bottom:15px; }
.woo-sl-input-group label { display:block; margin-bottom:5px; font-size:14px; font-weight:600; color:#4a5568; }
.woo-sl-input-group input { width:100%; padding:12px; border:1px solid #e2e8f0; border-radius:8px; box-sizing:border-box; }
.woo-sl-submit-btn { width:100%; padding:14px; background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); color:#fff; border:none; border-radius:8px; font-weight:bold; cursor:pointer; }
.woo-sl-msg { margin-bottom:15px; padding:10px; border-radius:5px; display:none; font-size:14px; }
.woo-sl-msg.error { background:#fff5f5; color:#c53030; display:block; }
.woo-sl-msg.success { background:#f0fff4; color:#2f855a; display:block; }

@media (max-width: 768px) { 
    .woo-short-link-box { padding: 20px; } 
    .woo-share-grid { flex-direction: column; } 
    .woo-share-btn, .woo-copy-wrapper { width: 100%; flex: none; } 
    .woo-reward-cta { flex-direction: column; text-align: center; } 
    
    /* Melhorias para o Painel do Usuário no Mobile */
    .wsl-user-dashboard h2 { font-size: 22px; text-align: center; margin-bottom: 20px; }
    .wsl-user-dashboard h3 { font-size: 18px; margin-top: 30px; text-align: center; }
    
    /* Transformar Tabelas em Cards Mobile - Forçado para todas as tabelas responsivas */
    .wsl-user-dashboard .shop_table_responsive, 
    .wsl-user-dashboard .shop_table_responsive thead, 
    .wsl-user-dashboard .shop_table_responsive tbody, 
    .wsl-user-dashboard .shop_table_responsive th, 
    .wsl-user-dashboard .shop_table_responsive td, 
    .wsl-user-dashboard .shop_table_responsive tr { 
        display: block !important; 
        width: 100% !important;
        box-sizing: border-box;
    }

    .wsl-user-dashboard .shop_table_responsive thead { display: none !important; }
    
    .wsl-user-dashboard .shop_table_responsive tr { 
        margin-bottom: 20px !important; 
        border: 1px solid #e2e8f0 !important; 
        border-radius: 12px !important; 
        padding: 15px !important; 
        background: #fff !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    }

    .wsl-user-dashboard .shop_table_responsive td { 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        padding: 10px 0 !important; 
        border: none !important;
        border-bottom: 1px solid #f7fafc !important;
        font-size: 14px !important;
        text-align: right !important;
    }

    .wsl-user-dashboard .shop_table_responsive td:last-child { border-bottom: none !important; }

    .wsl-user-dashboard .shop_table_responsive td::before { 
        content: attr(data-title); 
        font-weight: 700 !important; 
        text-transform: uppercase !important; 
        font-size: 10px !important; 
        color: #a0aec0 !important;
        text-align: left !important;
        flex: 1;
    }
    
    /* Ajustes específicos para colunas com muito conteúdo */
    .wsl-user-dashboard .shop_table_responsive td[data-title="Seu Link Único"],
    .wsl-user-dashboard .shop_table_responsive td[data-title="Produto de Interesse"],
    .wsl-user-dashboard .shop_table_responsive td[data-title="Ações"] { 
        flex-direction: column !important; 
        align-items: stretch !important; 
        text-align: left !important;
    }

    .wsl-user-dashboard .shop_table_responsive td[data-title="Seu Link Único"]::before,
    .wsl-user-dashboard .shop_table_responsive td[data-title="Produto de Interesse"]::before,
    .wsl-user-dashboard .shop_table_responsive td[data-title="Ações"]::before { 
        margin-bottom: 8px !important; 
    }

    /* Ajuste para o código do link */
    .wsl-user-dashboard .shop_table_responsive td[data-title="Seu Link Único"] div {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .wsl-user-dashboard .shop_table_responsive td[data-title="Seu Link Único"] code {
        max-width: 100% !important;
        white-space: normal !important;
        word-break: break-all !important;
    }

    .wsl-user-dashboard .shop_table_responsive td[data-title="Ações"] div {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .wsl-user-dashboard .shop_table_responsive .button {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* Grid de Recompensas no Mobile */
    .wsl-user-dashboard .wsl-reward-grid { 
        grid-template-columns: 1fr !important; 
        gap: 15px !important; 
    }
    
    /* Card de Dica */
    .wsl-user-dashboard div[style*="background: #fffaf0"] { 
        flex-direction: column !important; 
        text-align: center !important; 
        padding: 20px !important; 
    }
}
