/* =========================================================================
   WP Pro Sidebar Menu — Páginas de Menu
   Grade de atalhos no estilo do Menu Iniciar do Windows 11.

   Estrutura:
   1. Tokens e temas
   2. Contêiner e cabeçalho
   3. Campo de busca
   4. Seções e divisórias
   5. Grade (tiles)
   6. Lista (linhas)
   7. Estilos de bloco (win11 / rounded / circle / card)
   8. Tamanhos
   9. Badges e marcações
   10. Responsivo
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens e temas
   ------------------------------------------------------------------------- */

.wpsm-mp {
    /* Definidos pelo motor de estilos (class-style-engine.php), por dispositivo */
    --wpsm-mp-max-width: 1100px;
    --wpsm-mp-cols: 6;
    --wpsm-mp-icon-size: 48px;
    --wpsm-mp-gap: 6px;
    --wpsm-mp-label-size: 12.5px;
    --wpsm-mp-label-lines: 2;
    --wpsm-mp-tile-pad: 14px;
    --wpsm-mp-shadow: none;
    --wpsm-mp-offset-top: 0px;

    /* Paleta clara (padrão) */
    --wpsm-mp-bg: #f5f6f8;
    --wpsm-mp-panel: #ffffff;
    --wpsm-mp-panel-border: rgba(0, 0, 0, .07);
    --wpsm-mp-text: #1b1c1f;
    --wpsm-mp-text-soft: #5f6470;
    --wpsm-mp-text-faint: #8b909c;
    --wpsm-mp-hover: rgba(0, 0, 0, .045);
    --wpsm-mp-active: rgba(0, 0, 0, .075);
    --wpsm-mp-tile-bg: transparent;
    --wpsm-mp-icon-bg: rgba(0, 0, 0, .05);
    --wpsm-mp-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05);
    --wpsm-mp-focus: var(--wpsm-primary-color, #823e9f);

    --wpsm-mp-radius-tile: 8px;
    --wpsm-mp-radius-icon: 10px;

    /* Tons do acento usados por sombras "glow" e cartões tingidos */
    --wpsm-mp-accent-a10: rgba(130, 62, 159, .10);
    --wpsm-mp-accent-a30: rgba(130, 62, 159, .30);
    --wpsm-mp-accent-a40: rgba(130, 62, 159, .40);

    box-sizing: border-box;
    width: 100%;
    padding: 28px 20px 56px;
    background: var(--wpsm-mp-bg);
    color: var(--wpsm-mp-text);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wpsm-mp *,
.wpsm-mp *::before,
.wpsm-mp *::after {
    box-sizing: border-box;
}

/* Tema escuro forçado */
.wpsm-mp--theme-dark {
    --wpsm-mp-bg: #202124;
    --wpsm-mp-panel: #2b2d31;
    --wpsm-mp-panel-border: rgba(255, 255, 255, .08);
    --wpsm-mp-text: #f2f3f5;
    --wpsm-mp-text-soft: #b9bdc7;
    --wpsm-mp-text-faint: #878c96;
    --wpsm-mp-hover: rgba(255, 255, 255, .06);
    --wpsm-mp-active: rgba(255, 255, 255, .1);
    --wpsm-mp-icon-bg: rgba(255, 255, 255, .08);
    --wpsm-mp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
}

/* Tema automático: acompanha a preferência do sistema */
@media (prefers-color-scheme: dark) {
    .wpsm-mp--theme-auto {
        --wpsm-mp-bg: #202124;
        --wpsm-mp-panel: #2b2d31;
        --wpsm-mp-panel-border: rgba(255, 255, 255, .08);
        --wpsm-mp-text: #f2f3f5;
        --wpsm-mp-text-soft: #b9bdc7;
        --wpsm-mp-text-faint: #878c96;
        --wpsm-mp-hover: rgba(255, 255, 255, .06);
        --wpsm-mp-active: rgba(255, 255, 255, .1);
        --wpsm-mp-icon-bg: rgba(255, 255, 255, .08);
        --wpsm-mp-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    }
}

/* Embutido via shortcode: sem fundo de página inteira */
.wpsm-mp--embedded {
    padding: 0;
    background: transparent;
}

/* -------------------------------------------------------------------------
   2. Contêiner e cabeçalho
   ------------------------------------------------------------------------- */

.wpsm-mp__inner {
    max-width: var(--wpsm-mp-max-width);
    margin: 0 auto;
}

/*
   Modo "painel": a largura máxima passa a valer para o elemento que carrega o
   fundo, e não apenas para o conteúdo. É o que faz definir 750px realmente
   estreitar o painel visível.
*/
.wpsm-mp--width-panel {
    max-width: var(--wpsm-mp-max-width);
    margin-left: auto;
    margin-right: auto;
}

.wpsm-mp--width-panel > .wpsm-mp__inner {
    max-width: none;
}

.wpsm-mp__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.wpsm-mp__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 10px;
    border: 1px solid var(--wpsm-mp-panel-border);
    border-radius: 999px;
    background: var(--wpsm-mp-panel);
    color: var(--wpsm-mp-text-soft);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.wpsm-mp__back:hover {
    background: var(--wpsm-mp-hover);
    color: var(--wpsm-mp-text);
}

.wpsm-mp__back:active {
    transform: scale(.97);
}

.wpsm-mp__back i {
    font-size: 16px;
}

.wpsm-mp__titles {
    min-width: 0;
}

.wpsm-mp__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--wpsm-mp-text);
}

.wpsm-mp__subtitle {
    margin: 3px 0 0;
    font-size: 14px;
    color: var(--wpsm-mp-text-soft);
}

/* -------------------------------------------------------------------------
   3. Campo de busca — filtra os atalhos da própria página
   ------------------------------------------------------------------------- */

.wpsm-mp__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 540px;
    margin: 0 auto 30px;
    padding: 0 14px;
    height: 42px;
    background: var(--wpsm-mp-panel);
    border: 1px solid var(--wpsm-mp-panel-border);
    border-radius: 21px;
    box-shadow: var(--wpsm-mp-shadow);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.wpsm-mp__search:focus-within {
    border-color: var(--wpsm-mp-focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpsm-mp-focus) 18%, transparent);
}

.wpsm-mp__search > i {
    flex: 0 0 auto;
    font-size: 17px;
    color: var(--wpsm-mp-text-faint);
}

.wpsm-mp__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--wpsm-mp-text);
    font-size: 14px;
    font-family: inherit;
}

.wpsm-mp__search-input::placeholder {
    color: var(--wpsm-mp-text-faint);
}

/* Remove o "x" nativo para usar o nosso */
.wpsm-mp__search-input::-webkit-search-cancel-button {
    display: none;
}

.wpsm-mp__search-clear {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: var(--wpsm-mp-hover);
    color: var(--wpsm-mp-text-soft);
    cursor: pointer;
}

.wpsm-mp__search-clear:hover {
    background: var(--wpsm-mp-active);
}

.wpsm-mp__search-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--wpsm-mp-text-faint);
}

.wpsm-mp__search-empty i {
    display: block;
    margin-bottom: 8px;
    font-size: 34px;
    opacity: .6;
}

.wpsm-mp__search-empty p {
    margin: 0;
    font-size: 14px;
}

/* -------------------------------------------------------------------------
   4. Seções e divisórias
   ------------------------------------------------------------------------- */

.wpsm-mp__section {
    margin-bottom: 30px;
}

.wpsm-mp__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.wpsm-mp__section-title,
.wpsm-mp__section-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wpsm-mp-text);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.3;
}

.wpsm-mp__section-toggle {
    cursor: pointer;
}

.wpsm-mp__section-title i,
.wpsm-mp__section-toggle > i:first-child {
    font-size: 17px;
    color: var(--wpsm-mp-text-soft);
}

.wpsm-mp__chevron {
    font-size: 18px;
    color: var(--wpsm-mp-text-faint);
    transition: transform .2s ease;
}

.wpsm-mp__section.is-collapsed .wpsm-mp__chevron {
    transform: rotate(-90deg);
}

.wpsm-mp__section.is-collapsed .wpsm-mp__grid,
.wpsm-mp__section.is-collapsed .wpsm-mp__list {
    display: none;
}

/* Botão "Todos os aplicativos >" do Windows 11 */
.wpsm-mp__section-action {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px 5px 12px;
    border: 1px solid var(--wpsm-mp-panel-border);
    border-radius: 6px;
    background: var(--wpsm-mp-panel);
    color: var(--wpsm-mp-text-soft);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.wpsm-mp__section-action:hover {
    background: var(--wpsm-mp-hover);
    color: var(--wpsm-mp-text);
    text-decoration: none;
}

.wpsm-mp__section-action i {
    font-size: 15px;
}

/* Divisória */
.wpsm-mp__separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
}

.wpsm-mp__separator::before,
.wpsm-mp__separator::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--wpsm-mp-panel-border);
}

/* Divisória sem rótulo: apenas a linha */
.wpsm-mp__separator:not(:has(.wpsm-mp__separator-label))::after {
    display: none;
}

.wpsm-mp__separator-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--wpsm-mp-text-faint);
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   5. Grade (tiles)
   ------------------------------------------------------------------------- */

.wpsm-mp__grid {
    display: grid;
    /* A seção pode sobrescrever as colunas da página; sem isso, herda o estilo */
    grid-template-columns: repeat(var(--wpsm-mp-section-cols, var(--wpsm-mp-cols)), minmax(0, 1fr));
    gap: var(--wpsm-mp-gap);
}

/* Itens escondidos pelo "ver mais" / paginação */
.wpsm-mp__grid > [hidden],
.wpsm-mp__list > [hidden] {
    display: none !important;
}

.wpsm-mp__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: var(--wpsm-mp-tile-pad) 8px;
    border-radius: var(--wpsm-mp-radius-tile);
    background: var(--wpsm-mp-tile-bg);
    color: var(--wpsm-mp-text);
    text-align: center;
    text-decoration: none;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.wpsm-mp__tile:hover {
    background: var(--wpsm-mp-hover);
    text-decoration: none;
    color: var(--wpsm-mp-text);
}

.wpsm-mp__tile:active {
    background: var(--wpsm-mp-active);
    transform: scale(.96);
}

.wpsm-mp__tile:focus-visible,
.wpsm-mp__row:focus-visible {
    outline: 2px solid var(--wpsm-mp-focus);
    outline-offset: 2px;
}

/* Bloco largo: ocupa duas colunas */
.wpsm-mp__tile.is-wide {
    grid-column: span 2;
}

.wpsm-mp__tile-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--wpsm-mp-icon-size, 48px);
    height: var(--wpsm-mp-icon-size, 48px);
    border-radius: var(--wpsm-mp-radius-icon);
    background: var(--wpsm-mp-icon-bg);
    color: var(--wpsm-mp-fg, var(--wpsm-primary-color, #823e9f));
    overflow: hidden;
}

.wpsm-mp__tile-icon i {
    font-size: calc(var(--wpsm-mp-icon-size, 48px) * .5);
    line-height: 1;
}

.wpsm-mp__tile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpsm-mp__letter {
    font-size: calc(var(--wpsm-mp-icon-size, 48px) * .42);
    font-weight: 600;
    line-height: 1;
}

.wpsm-mp__tile-label {
    display: -webkit-box;
    -webkit-line-clamp: var(--wpsm-mp-label-lines, 2);
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--wpsm-mp-label-size, 12.5px);
    font-weight: 400;
    line-height: 1.35;
    color: var(--wpsm-mp-text);
    word-break: break-word;
}

.wpsm-mp__tile-sublabel {
    font-size: 11px;
    line-height: 1.3;
    color: var(--wpsm-mp-text-faint);
}

/* Ponto indicador sobre o ícone, como as notificações do Windows */
.wpsm-mp__dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--wpsm-mp-panel);
}

/* -------------------------------------------------------------------------
   6. Lista (linhas) — estilo "Recomendações"
   ------------------------------------------------------------------------- */

.wpsm-mp__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.wpsm-mp__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--wpsm-mp-radius-tile);
    color: var(--wpsm-mp-text);
    text-decoration: none;
    transition: background .13s ease;
}

.wpsm-mp__row:hover {
    background: var(--wpsm-mp-hover);
    text-decoration: none;
    color: var(--wpsm-mp-text);
}

.wpsm-mp__row:active {
    background: var(--wpsm-mp-active);
}

.wpsm-mp__row-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--wpsm-mp-icon-bg);
    color: var(--wpsm-mp-fg, var(--wpsm-primary-color, #823e9f));
    overflow: hidden;
}

.wpsm-mp__row-icon i {
    font-size: 18px;
}

.wpsm-mp__row-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpsm-mp__row-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wpsm-mp__row-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--wpsm-mp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpsm-mp__row-meta {
    font-size: 11.5px;
    line-height: 1.3;
    color: var(--wpsm-mp-text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------
   9. Badges e marcações
   ------------------------------------------------------------------------- */

.wpsm-mp__badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.6;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.wpsm-mp__tile .wpsm-mp__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpsm-mp__badge--primary,
.wpsm-mp__dot--primary {
    background: var(--wpsm-primary-color, #823e9f);
}

.wpsm-mp__badge--secondary,
.wpsm-mp__dot--secondary {
    background: #5f6470;
}

.wpsm-mp__badge--danger,
.wpsm-mp__dot--danger {
    background: #d93636;
}

.wpsm-mp__badge--success,
.wpsm-mp__dot--success {
    background: #1f9254;
}

/* Marcação de item agendado — só administradores enxergam */
.wpsm-mp__scheduled {
    position: absolute;
    bottom: 4px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f0a202;
    color: #fff;
    font-size: 11px;
}

/* Estado vazio da página inteira */
.wpsm-mp__empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--wpsm-mp-text-faint);
}

.wpsm-mp__empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 44px;
    opacity: .5;
}

.wpsm-mp__empty p {
    margin: 0;
    font-size: 14.5px;
}

/* Conteúdo livre do editor abaixo da grade */
.wpsm-mp__content {
    max-width: var(--wpsm-mp-max-width, 1100px);
    margin: 0 auto;
    padding: 0 20px 48px;
}

/* -------------------------------------------------------------------------
   10. Responsivo
   ------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .wpsm-mp {
        padding: 20px 14px 48px;
    }

    .wpsm-mp__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .wpsm-mp__title {
        font-size: 20px;
    }

    .wpsm-mp__search {
        margin-bottom: 24px;
    }

    /* Em telas estreitas o bloco largo volta a ocupar uma coluna */
    .wpsm-mp__tile.is-wide {
        grid-column: span 1;
    }
}

@media (max-width: 420px) {
    .wpsm-mp__header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .wpsm-mp__section-head {
        flex-wrap: wrap;
    }
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
    .wpsm-mp__tile,
    .wpsm-mp__row,
    .wpsm-mp__back,
    .wpsm-mp__chevron {
        transition: none;
    }

    .wpsm-mp__tile:active,
    .wpsm-mp--tile-card .wpsm-mp__tile:hover {
        transform: none;
    }
}

/* =========================================================================
   11. Paginação e "Ver mais"   (v1.3.0)
   ========================================================================= */

.wpsm-mp__pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.wpsm-mp__pager[hidden] {
    display: none;
}

/* Botão Ver mais / Ver menos */
.wpsm-mp__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--wpsm-mp-panel-border);
    border-radius: 999px;
    background: var(--wpsm-mp-panel);
    color: var(--wpsm-mp-text-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.wpsm-mp__more:hover {
    background: var(--wpsm-mp-hover);
    border-color: var(--wpsm-mp-focus);
    color: var(--wpsm-mp-text);
}

.wpsm-mp__more i {
    font-size: 16px;
    transition: transform .2s ease;
}

.wpsm-mp__more.is-expanded i {
    transform: rotate(180deg);
}

/* Navegação de páginas */
.wpsm-mp__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsm-mp__nav[hidden] {
    display: none;
}

.wpsm-mp__nav-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--wpsm-mp-panel-border);
    border-radius: 50%;
    background: var(--wpsm-mp-panel);
    color: var(--wpsm-mp-text-soft);
    font-size: 18px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

.wpsm-mp__nav-btn:hover:not(:disabled) {
    background: var(--wpsm-mp-hover);
    color: var(--wpsm-mp-text);
}

.wpsm-mp__nav-btn:disabled {
    opacity: .35;
    cursor: default;
}

/* Bolinhas */
.wpsm-mp__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.wpsm-mp__dot-btn {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--wpsm-mp-text-faint);
    opacity: .4;
    cursor: pointer;
    transition: width .25s ease, opacity .2s ease, background .2s ease;
}

.wpsm-mp__dot-btn:hover {
    opacity: .7;
}

.wpsm-mp__dot-btn.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--wpsm-mp-focus);
    opacity: 1;
}

/* Números */
.wpsm-mp__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wpsm-mp__page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--wpsm-mp-text-soft);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.wpsm-mp__page-btn:hover {
    background: var(--wpsm-mp-hover);
    color: var(--wpsm-mp-text);
}

.wpsm-mp__page-btn.is-active {
    background: var(--wpsm-mp-focus);
    border-color: var(--wpsm-mp-focus);
    color: #fff;
}

.wpsm-mp__page-ellipsis {
    padding: 0 2px;
    color: var(--wpsm-mp-text-faint);
    font-size: 12.5px;
}

/* =========================================================================
   12. Trilha de navegação entre páginas de menu   (v1.3.0)
   ========================================================================= */

.wpsm-mp__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--wpsm-mp-text-faint);
}

.wpsm-mp__breadcrumb[hidden] {
    display: none;
}

.wpsm-mp__crumb {
    color: var(--wpsm-mp-text-soft);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 5px;
    transition: background .15s ease, color .15s ease;
}

.wpsm-mp__crumb:hover {
    background: var(--wpsm-mp-hover);
    color: var(--wpsm-mp-text);
    text-decoration: none;
}

.wpsm-mp__crumb.is-current {
    color: var(--wpsm-mp-text);
    font-weight: 600;
}

.wpsm-mp__crumb-sep {
    opacity: .5;
}

/* Botão Voltar que aguarda o JavaScript decidir se aparece */
.wpsm-mp__back.is-pending {
    display: none;
}

/* =========================================================================
   13. Fusão com o fundo do site   (v1.3.0)

   Antes, o painel pintava um fundo opaco apenas na altura do conteúdo e o
   restante da tela mostrava o fundo do tema — daí o corte irregular. Agora o
   modo de fusão é escolhido no construtor e o painel pode ocupar a janela
   inteira, encostando no rodapé sem emenda visível.
   ========================================================================= */

/* Modos translúcidos herdam a cor do texto do tema quando não há cor definida */
.wpsm-mp--blend-inherit,
.wpsm-mp--blend-gradient,
.wpsm-mp--blend-spotlight {
    background: transparent;
}

/* No modo painel, o miolo é que ganha o fundo */
.wpsm-mp--blend-panel > .wpsm-mp__inner {
    margin: 8px auto;
}

/* Cartões de vidro precisam de contraste próprio sobre fundos escuros */
.wpsm-mp--blend-glass .wpsm-mp__tile-label,
.wpsm-mp--blend-tint .wpsm-mp__tile-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/*
   flow-root, não block: sem isso a margem superior do painel colapsaria para
   fora do <main> e o afastamento simplesmente não apareceria.
*/
.wpsm-menu-page {
    display: flow-root;
}

/* =========================================================================
   14. Ocultação responsiva de elementos da barra superior   (v1.3.0)
   ========================================================================= */

@media (max-width: 768px) {
    body.wpsm-hide-menu-text #wpsm-btn-toggle-text {
        display: none !important;
    }

    body.wpsm-hide-user-caret .wpsm-user-trigger > .ri-arrow-down-s-line {
        display: none !important;
    }

    body.wpsm-hide-user-name .wpsm-user-name {
        display: none !important;
    }

    body.wpsm-hide-site-name .nome-site-a {
        display: none !important;
    }
}

/* =========================================================================
   15. Ocultação de seções por dispositivo   (v1.3.0)

   Os cortes acompanham WPSM_Style_Engine::BP_TABLET / BP_MOBILE.
   ========================================================================= */

@media (min-width: 1025px) {
    .wpsm-mp__section.wpsm-mp--hide-desktop { display: none !important; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .wpsm-mp__section.wpsm-mp--hide-tablet { display: none !important; }
}

@media (max-width: 640px) {
    .wpsm-mp__section.wpsm-mp--hide-mobile { display: none !important; }
}
