.ds-dash-root {
    --verde: #1e8e3e;
    --vermelho: #d93025;
    --texto: #1a1a1a;
    --texto-sec: #6b6b6b;
    --borda: #e8e8e8;
    --fundo: #fafafa;
    --branco: #ffffff;
    --sombra: 0 1px 3px rgba(0,0,0,0.08);

    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--texto);
    background: var(--fundo);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.ds-dash-loading, .ds-dash-erro, .ds-dash-vazio {
    padding: 40px 20px;
    text-align: center;
    color: var(--texto-sec);
    font-size: 14px;
}
.ds-dash-erro { color: var(--vermelho); }

.ds-dash-header {
    background: var(--branco);
    padding: 12px 6px 10px;
    border-bottom: 1px solid var(--borda);
}
.ds-dash-busca {
    display: flex;
    align-items: center;
    background: var(--fundo);
    border: 1px solid var(--borda);
    border-radius: 10px;
    padding: 9px 12px;
    position: relative;
}
.ds-dash-busca input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    flex: 1;
    color: var(--texto);
    padding-right: 20px;
}
.ds-dash-busca-limpar {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ddd;
    color: #555;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}
.ds-dash-busca-limpar.visivel { display: flex; }

.ds-dash-chips {
    display: flex;
    gap: 8px;
    padding: 10px 6px;
    overflow-x: auto;
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
}
.ds-dash-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--fundo);
    color: var(--texto-sec);
    border: 1px solid var(--borda);
    cursor: pointer;
}
.ds-dash-chip.ativo { background: var(--texto); color: var(--branco); border-color: var(--texto); }

.ds-dash-lista { padding: 10px 6px 90px; }
.ds-dash-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--branco);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: var(--sombra);
    cursor: pointer;
}
.ds-dash-card.pausado { opacity: 0.55; }
.ds-dash-card img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: #eee; flex-shrink: 0; }
.ds-dash-card-info { flex: 1; min-width: 0; }
.ds-dash-card-nome { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-dash-card-categoria { font-size: 12px; color: var(--texto-sec); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }
.ds-dash-card-preco { font-size: 15px; color: var(--texto); font-weight: 700; margin-top: 6px; }
.ds-dash-card-desc { font-size: 12px; color: var(--texto-sec); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-dash-card-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--vermelho); }
.ds-dash-card-tag-linha { display: flex; align-items: center; gap: 14px; margin-top: 4px; }

.ds-dash-card-acoes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ds-dash-switch {
    width: 40px; height: 24px; border-radius: 20px;
    background: var(--verde); position: relative; flex-shrink: 0; cursor: pointer;
}
.ds-dash-switch.off { background: #d0d0d0; }
.ds-dash-switch-knob {
    width: 20px; height: 20px; border-radius: 50%; background: var(--branco);
    position: absolute; top: 2px; left: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ds-dash-switch.off .ds-dash-switch-knob { left: 2px; }

.ds-dash-lixeira {
    color: #ef5350;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    opacity: 0.85;
}
.ds-dash-lixeira:hover { opacity: 1; }

.ds-dash-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center; z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ds-dash-sheet {
    background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0;
    max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; color: #1a1a1a;
}
.ds-dash-sheet-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid #e8e8e8; flex-shrink: 0;
}
.ds-dash-sheet-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.ds-dash-sheet-close {
    width: 40px; height: 40px; border-radius: 50%; background: #fafafa;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; line-height: 1; color: #6b6b6b; cursor: pointer;
}

/* ---- Abas ---- */
.ds-dash-tabs {
    display: flex;
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
}
.ds-dash-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--texto-sec);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.ds-dash-tab.ativo {
    color: var(--texto);
    border-bottom-color: var(--texto);
}

.ds-dash-info-icone {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #1a1a1a !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-family: Georgia, serif !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.ds-dash-info-balao {
    display: none;
    position: absolute;
    bottom: 22px;
    top: auto;
    left: -8px;
    width: 220px;
    background: #f0f0f0 !important;
    color: #1a1a1a !important;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 10px;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 1px solid #dcdcdc !important;
}

.ds-dash-info-balao b {
    font-weight: 700;
    color: #1a1a1a !important;
}

.ds-dash-info-aberto .ds-dash-info-balao {
    display: block;
}

.ds-dash-card-vinculo {
    padding: 12px;
    margin-bottom: 8px;
    border: 1.5px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ds-dash-card-vinculo.selecionado {
    border-color: #1a1a1a;
    background: #fafafa;
}
.ds-dash-card-vinculo input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}
.ds-dash-card-vinculo .ds-dash-card-info {
    flex: 1;
    min-width: 0;
}
.ds-dash-ordem-setas {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ds-dash-ordem-setas button {
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    background: transparent !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}
.ds-dash-ordem-setas button svg {
    width: 22px;
    height: 22px;
}
.ds-dash-ordem-setas button:active {
    opacity: 0.5;
}
.ds-dash-hint-drag {
    font-size: 11.5px;
    color: var(--texto-sec);
    margin-bottom: 8px;
}

.ds-dash-banner-teste {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #fff3cd;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.ds-dash-banner-teste strong {
    font-size: 13px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ds-dash-banner-teste span {
    font-size: 12px;
    color: #3a3a3a;
    line-height: 1.4;
}

/* ---- Checkbox linha (grupos vinculados, obrigatório) ---- */
.ds-dash-check-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 13px;
    cursor: pointer;
}
.ds-dash-check-linha em { color: #999; font-style: normal; font-size: 12px; }
.ds-dash-vazio-mini { font-size: 12px; color: var(--texto-sec); padding: 8px 0; }

/* ---- Linhas de opção (editor de grupo) ---- */
.ds-dash-op-linha {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.ds-dash-op-linha input {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    flex: 1;
    min-width: 0;
}
.ds-dash-op-preco-wrap {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    width: 90px;
}
.ds-dash-op-preco-mais {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    flex-shrink: 0;
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px 0 0 8px;
}
.ds-dash-op-preco-wrap .ds-dash-op-preco {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    width: 100%;
}
.ds-dash-op-ativo-toggle {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    background: #f2f2f2;
    opacity: 0.9;
}
.ds-dash-op-ativo-toggle.off {
    background: #fdecea;
    opacity: 1;
}
.ds-dash-op-pausada {
    opacity: 0.5;
}
.ds-dash-op-pausada .ds-dash-op-nome,
.ds-dash-op-pausada .ds-dash-op-preco {
    text-decoration: line-through;
}
.ds-dash-op-foto {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f2f2f2;
    border: 1px dashed #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}
.ds-dash-op-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ds-dash-op-foto-placeholder {
    font-size: 15px;
    opacity: 0.4;
}

.ds-dash-op-remover {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d93025;
    font-size: 18px;
    cursor: pointer;
}
.ds-dash-btn-add-opcao {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--texto-sec);
    padding: 8px;
    border: 1.5px dashed #c8c8c8;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 4px;
}
.ds-dash-btn-excluir {
    background: #fce8e6;
    color: #d93025;
}
.ds-dash-campo-linha-dupla {
    display: flex;
    gap: 10px;
}
.ds-dash-campo-linha-dupla .ds-dash-campo { flex: 1; }
.ds-dash-dica {
    font-size: 11px;
    color: #999;
    margin: -8px 0 14px;
    line-height: 1.4;
}
.ds-dash-sheet-body { padding: 18px; overflow-y: auto; }
.ds-dash-foto-upload {
    width: 100%; height: 140px; border-radius: 14px; background: #fafafa;
    border: 1.5px dashed #c8c8c8; display: flex; align-items: center; justify-content: center;
    color: #6b6b6b; font-size: 12px; font-weight: 600; cursor: pointer; overflow: hidden;
}
.ds-dash-foto-status { text-align: center; font-size: 12px; color: #6b6b6b; margin: 8px 0 16px; min-height: 16px; }
.ds-dash-campo input:disabled {
    background: #f2f2f2;
    color: #999;
    cursor: not-allowed;
}

.ds-dash-campo { margin-bottom: 14px; }
.ds-dash-campo label {
    display: block; font-size: 12px; font-weight: 700; color: #6b6b6b;
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}
.ds-dash-campo input, .ds-dash-campo textarea, .ds-dash-campo select {
    width: 100%; border: 1px solid #e8e8e8; border-radius: 10px; padding: 11px 12px;
    font-size: 14px; font-family: inherit; color: #1a1a1a; background: #fff;
}
.ds-dash-campo textarea { resize: none; height: 130px; }
.ds-dash-msg-erro { color: #d93025; font-size: 13px; font-weight: 600; min-height: 18px; }
.ds-dash-sheet-footer { padding: 14px 18px 20px; border-top: 1px solid #e8e8e8; flex-shrink: 0; }
.ds-dash-btn { padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.ds-dash-btn-primario { background: #1a1a1a; color: #fff; }
.ds-dash-btn-atalho {
    padding: 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    background: #f2f2f2;
    color: #1a1a1a;
    border: 1px solid #e2e2e2;
}

/* ---- Login inline quando deslogado ---- */
.ds-dash-login-wrap {
    max-width: 320px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}
.ds-dash-login-wrap p { font-size: 13px; color: #6b6b6b; margin-bottom: 16px; }
.ds-dash-login-wrap form { text-align: left; }
.ds-dash-login-wrap p.login-username,
.ds-dash-login-wrap p.login-password {
    margin-bottom: 12px;
}
.ds-dash-login-wrap label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6b6b6b;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.ds-dash-login-wrap input[type="text"],
.ds-dash-login-wrap input[type="password"] {
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14px;
    box-sizing: border-box;
}
.ds-dash-login-wrap p.login-submit {
    margin-top: 16px;
}
.ds-dash-login-wrap input[type="submit"] {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ds-dash-login-wrap p.login-remember { font-size: 12px; color: #6b6b6b; margin-top: 10px; }

/* ------ Botão flutuante "+" (novo produto) --------------------- */
.ds-dash-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: 1.5px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    padding: 0;
}
.ds-dash-fab:hover {
    opacity: 0.85;
}
.ds-dash-fab[hidden] {
    display: none;
}

/* ------ Fix: modal de mídia do WP ficando branco/invisível --------- */
/* O CSS do tema/Elementor do site sobrescreve cor de texto/botão pra
   branco de forma genérica, e isso vaza pro wp.media() nativo também
   (aba "Enviar arquivos", área de drop, texto dos itens da biblioteca).
   Força as cores certas de volta só dentro do modal, sem afetar o resto. */
.media-modal,
.media-modal *:not(.media-menu-item.active):not(.button-primary) {
    color: #23282d !important;
}
.media-modal .media-menu-item.active {
    color: #23282d !important;
    background: #f0f0f1 !important;
}
.media-modal-content a.button,
.media-modal-content .button {
    color: #23282d !important;
    background: #f6f7f7 !important;
    border-color: #767676 !important;
}
.media-modal-content .button-primary {
    color: #fff !important;
    background: #2271b1 !important;
    border-color: #2271b1 !important;
}
.media-modal .drop-zone-title,
.media-modal .drop-instructions {
    color: #23282d !important;
}
