/**
 * Estilos base dos widgets no frontend.
 *
 * Deliberadamente contido: define estrutura (grid, espaçamento, proporções)
 * e deixa tipografia e cores para o tema herdar sempre que possível. O CSS
 * gerado por página, vindo dos controles, entra depois deste arquivo e vence
 * quando o usuário definiu algo explicitamente.
 */

.wpep-content {
    --wpep-gap: 24px;
    --wpep-radius: 8px;
    --wpep-accent: currentColor;
    --wpep-muted: rgba(0, 0, 0, .6);
    --wpep-border: rgba(0, 0, 0, .12);
    --wpep-surface: rgba(0, 0, 0, .03);
}

.wpep-content > .wpep-el + .wpep-el {
    margin-top: var(--wpep-gap);
}

/* ══════════ LAYOUT ══════════ */

.wpep-section {
    position: relative;
}

.wpep-section-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wpep-gap);
    width: 100%;
    margin-inline: auto;
}

.wpep-layout-boxed  { max-width: 1140px; }
.wpep-layout-narrow { max-width: 720px; }
.wpep-layout-full   { max-width: none; }

.wpep-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}

.wpep-column > .wpep-el + .wpep-el {
    margin-top: 16px;
}

/* Colunas empilham no celular — regra que evita layout quebrado por padrão */
@media (max-width: 767px) {
    .wpep-section-inner {
        flex-direction: column;
    }
    .wpep-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Visibilidade responsiva */

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

@media (min-width: 768px) and (max-width: 1024px) {
    .wpep-hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
    .wpep-hide-mobile { display: none !important; }
}

/* ══════════ TEXTO ══════════ */

.wpep-heading {
    margin-block: 0 .4em;
}

.wpep-text > *:first-child { margin-top: 0; }
.wpep-text > *:last-child  { margin-bottom: 0; }

.wpep-has-dropcap > p:first-of-type::first-letter {
    float: left;
    font-size: 3.4em;
    line-height: .82;
    font-weight: 700;
    margin: .04em .1em 0 0;
}

/* ══════════ BOTÕES ══════════ */

.wpep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--wpep-radius);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}

.wpep-btn:hover { transform: translateY(-1px); }
.wpep-btn:active { transform: translateY(0); }

.wpep-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.wpep-btn-primary {
    background: #4f46e5;
    color: #fff;
}

.wpep-btn-primary:hover { background: #4338ca; color: #fff; }

.wpep-btn-secondary {
    background: var(--wpep-surface);
    color: inherit;
    border-color: var(--wpep-border);
}

.wpep-btn-outline {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.wpep-btn-ghost {
    background: transparent;
    color: inherit;
}

.wpep-btn-ghost:hover { background: var(--wpep-surface); }

.wpep-btn-sm { padding: 8px 16px; font-size: .875em; }
.wpep-btn-lg { padding: 15px 32px; font-size: 1.05em; }

.wpep-btn-block { display: flex; width: 100%; }

/* ══════════ LISTAS ══════════ */

.wpep-list { margin: 0; padding-left: 1.4em; }

.wpep-list-none { list-style: none; padding-left: 0; }

.wpep-list-check,
.wpep-list-arrow {
    list-style: none;
    padding-left: 0;
}

.wpep-list-check li,
.wpep-list-arrow li {
    position: relative;
    padding-left: 1.7em;
}

.wpep-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #16a34a;
}

.wpep-list-arrow li::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: .6;
}

/* ══════════ DIVISOR / ESPAÇADOR ══════════ */

.wpep-divider {
    border: 0;
    border-top: 1px solid var(--wpep-border);
    margin-inline: auto;
}

.wpep-divider-dashed { border-top-style: dashed; }
.wpep-divider-dotted { border-top-style: dotted; }
.wpep-divider-double { border-top-style: double; border-top-width: 3px; }

.wpep-divider-stars {
    text-align: center;
    letter-spacing: .8em;
    opacity: .4;
    border: 0;
}

.wpep-spacer { width: 100%; }

/* ══════════ IMAGEM ══════════ */

.wpep-image,
.wpep-el img {
    max-width: 100%;
    height: auto;
}

.wpep-image { display: block; }

figure.wpep-image,
.wpep-el figure {
    margin: 0;
}

.wpep-image-caption,
.wpep-video-caption {
    margin-top: 8px;
    font-size: .875em;
    color: var(--wpep-muted);
    line-height: 1.5;
}

.wpep-align-center { text-align: center; }
.wpep-align-center img { margin-inline: auto; }
.wpep-align-right  { text-align: right; }
.wpep-align-right img { margin-left: auto; }

/* ══════════ GALERIA ══════════ */

.wpep-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wpep-gallery-item { margin: 0; }

.wpep-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--wpep-radius);
    display: block;
}

.wpep-gallery-item figcaption {
    margin-top: 6px;
    font-size: .8125em;
    color: var(--wpep-muted);
}

@media (max-width: 767px) {
    .wpep-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══════════ VÍDEO ══════════ */

.wpep-video-frame {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--wpep-radius);
    overflow: hidden;
}

.wpep-ratio-16-9 { aspect-ratio: 16 / 9; }
.wpep-ratio-4-3  { aspect-ratio: 4 / 3; }
.wpep-ratio-1-1  { aspect-ratio: 1 / 1; }
.wpep-ratio-21-9 { aspect-ratio: 21 / 9; }

.wpep-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Fachada: capa clicável que só carrega o player no clique */

.wpep-video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    display: block;
}

.wpep-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
    transition: opacity .2s;
}

.wpep-video-facade:hover .wpep-video-poster { opacity: 1; }

.wpep-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, .75);
    border-radius: 12px;
    transition: background .2s;
}

.wpep-video-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}

.wpep-video-facade:hover .wpep-video-play { background: #e62117; }

.wpep-video-facade:focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: -3px;
}

/* ══════════ HERO ══════════ */

.wpep-hero {
    position: relative;
    overflow: hidden;
}

.wpep-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpep-hero-mode-side {
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.wpep-hero-mode-side .wpep-hero-media,
.wpep-hero-mode-side .wpep-hero-text { flex: 1 1 0; min-width: 0; }

.wpep-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.wpep-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpep-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
}

.wpep-hero-title  { margin: 0; }
.wpep-hero-kicker {
    margin: 0;
    font-size: .8125em;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .75;
}

.wpep-hero-subtitle {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.6;
    opacity: .85;
}

.wpep-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 0;
}

.wpep-align-center .wpep-hero-actions,
.wpep-hero-text[style*="center"] .wpep-hero-actions { justify-content: center; }

.wpep-hero-image { border-radius: var(--wpep-radius); }

@media (max-width: 767px) {
    .wpep-hero-mode-side { flex-direction: column; gap: 24px; }
}

/* ══════════ CABEÇALHO DE ARTIGO ══════════ */

.wpep-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .875em;
    color: var(--wpep-muted);
}

.wpep-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.wpep-author-avatar {
    border-radius: 50%;
    width: 26px;
    height: 26px;
}

.wpep-meta-sep { opacity: .5; }

.wpep-article-meta a { color: inherit; }

/* ══════════ CITAÇÃO ══════════ */

.wpep-quote {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.6;
}

.wpep-quote p { margin: 0; }

.wpep-quote-border {
    padding-left: 20px;
    border-left: 4px solid var(--wpep-accent);
}

.wpep-quote-quote {
    position: relative;
    padding-top: 32px;
    text-align: center;
}

.wpep-quote-quote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4em;
    line-height: 1;
    opacity: .18;
}

.wpep-quote-card {
    padding: 24px;
    background: var(--wpep-surface);
    border-radius: var(--wpep-radius);
}

.wpep-quote-caption {
    margin-top: 12px;
    font-size: .8125em;
    color: var(--wpep-muted);
    font-style: normal;
}

.wpep-quote-caption cite { font-style: normal; }

/* ══════════ DESTAQUE ══════════ */

.wpep-callout {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-left: 4px solid;
    border-radius: var(--wpep-radius);
    background: var(--wpep-surface);
}

.wpep-callout-info    { border-left-color: #3b82f6; background: rgba(59, 130, 246, .08); }
.wpep-callout-success { border-left-color: #16a34a; background: rgba(22, 163, 74, .08); }
.wpep-callout-warning { border-left-color: #d97706; background: rgba(217, 119, 6, .08); }
.wpep-callout-danger  { border-left-color: #dc2626; background: rgba(220, 38, 38, .08); }
.wpep-callout-tip     { border-left-color: #8b5cf6; background: rgba(139, 92, 246, .08); }

.wpep-callout-icon { font-size: 1.15em; line-height: 1.5; flex-shrink: 0; }

.wpep-callout-body { flex: 1; min-width: 0; }
.wpep-callout-body > *:first-child { margin-top: 0; }
.wpep-callout-body > *:last-child  { margin-bottom: 0; }

.wpep-callout-title { margin: 0 0 4px; }

/* ══════════ CARTÕES ══════════ */

.wpep-cards-heading { margin-top: 0; }

.wpep-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wpep-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    overflow: hidden;
    background: var(--wpep-surface);
    transition: transform .18s, box-shadow .18s;
}

.wpep-card-linked:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.wpep-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.wpep-card-body { padding: 18px; flex: 1; }

.wpep-card-title { margin: 0 0 8px; font-size: 1.1em; }
.wpep-card-desc  { margin: 0; color: var(--wpep-muted); line-height: 1.55; }
.wpep-card-cta   { margin: 12px 0 0; font-weight: 600; }

/* Cartão inteiro clicável mantendo um único link real */
.wpep-card-linked .wpep-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.wpep-card-title a { text-decoration: none; color: inherit; }

@media (max-width: 900px) {
    .wpep-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .wpep-cards-grid { grid-template-columns: 1fr; }
}

/* ══════════ FAQ ══════════ */

.wpep-faq-heading { margin-top: 0; }

.wpep-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpep-faq-item {
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    overflow: hidden;
}

.wpep-faq-question {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.wpep-faq-question::-webkit-details-marker { display: none; }

.wpep-faq-question::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    line-height: 1;
    opacity: .5;
    transition: transform .2s;
}

.wpep-faq-item[open] .wpep-faq-question::after {
    content: "−";
}

.wpep-faq-question:hover { background: var(--wpep-surface); }

.wpep-faq-question:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

.wpep-faq-answer {
    padding: 0 18px 16px;
}

.wpep-faq-answer > *:first-child { margin-top: 0; }
.wpep-faq-answer > *:last-child  { margin-bottom: 0; }

/* ══════════ PASSO A PASSO ══════════ */

.wpep-howto-heading { margin-top: 0; }
.wpep-howto-intro   { color: var(--wpep-muted); }

.wpep-howto-steps {
    list-style: none;
    counter-reset: wpep-step;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wpep-howto-step {
    counter-increment: wpep-step;
    position: relative;
    padding-left: 52px;
}

.wpep-howto-step::before {
    content: counter(wpep-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    font-size: .95em;
}

.wpep-howto-step-title { margin: 4px 0 8px; font-size: 1.05em; }

.wpep-howto-step-figure { margin: 12px 0 0; }

.wpep-howto-step-image {
    border-radius: var(--wpep-radius);
    max-width: 100%;
    height: auto;
}

/* ══════════ SUMÁRIO ══════════ */

.wpep-toc {
    padding: 18px 20px;
    background: var(--wpep-surface);
    border-radius: var(--wpep-radius);
    border: 1px solid var(--wpep-border);
}

.wpep-toc-heading {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: .95em;
    cursor: pointer;
}

.wpep-toc-list {
    margin: 0;
    padding-left: 1.3em;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wpep-toc-list ul,
.wpep-toc-list ol { padding-left: 1.2em; }

.wpep-toc-level-3 { margin-left: 16px; font-size: .9375em; }
.wpep-toc-level-4 { margin-left: 32px; font-size: .9375em; opacity: .85; }

.wpep-toc a { text-decoration: none; }
.wpep-toc a:hover { text-decoration: underline; }

/* Cabeçalhos alvo de âncora não ficam sob o cabeçalho fixo do tema */
.wpep-content [id] { scroll-margin-top: 90px; }

/* ══════════ TRILHA ══════════ */

.wpep-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .875em;
    color: var(--wpep-muted);
}

.wpep-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wpep-breadcrumb a { color: inherit; text-decoration: none; }
.wpep-breadcrumb a:hover { text-decoration: underline; }

.wpep-breadcrumb-sep { opacity: .5; }

/* ══════════ RELACIONADOS ══════════ */

.wpep-related-heading { margin-top: 0; font-size: 1.1em; }

.wpep-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wpep-related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.wpep-related-thumb {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.wpep-related-body { flex: 1; min-width: 0; }

.wpep-related-body a { font-weight: 600; text-decoration: none; }
.wpep-related-body a:hover { text-decoration: underline; }

.wpep-related-desc {
    display: block;
    margin-top: 3px;
    font-size: .875em;
    color: var(--wpep-muted);
    line-height: 1.5;
}

/* ══════════ TABELA ══════════ */

.wpep-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wpep-table-scroll:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.wpep-table {
    width: 100%;
    border-collapse: collapse;
}

.wpep-table caption {
    caption-side: top;
    padding-bottom: 10px;
    font-size: .875em;
    color: var(--wpep-muted);
    text-align: left;
}

.wpep-table th,
.wpep-table td {
    padding: 10px 14px;
    border: 1px solid var(--wpep-border);
    text-align: left;
    vertical-align: top;
}

.wpep-table thead th {
    background: var(--wpep-surface);
    font-weight: 700;
}

.wpep-table-striped tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, .02);
}

/* ══════════ SANFONA E ABAS ══════════ */

.wpep-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpep-accordion-item {
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    overflow: hidden;
}

.wpep-accordion-title {
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 44px;
}

.wpep-accordion-title::-webkit-details-marker { display: none; }

.wpep-accordion-title::after {
    content: "▾";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .5;
    transition: transform .2s;
}

.wpep-accordion-item[open] .wpep-accordion-title::after {
    transform: translateY(-50%) rotate(180deg);
}

.wpep-accordion-title-inner {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    display: inline;
}

.wpep-accordion-content { padding: 0 18px 16px; }

.wpep-tablist {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--wpep-border);
    overflow-x: auto;
}

.wpep-tab-btn {
    padding: 12px 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: inherit;
    opacity: .65;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s, border-color .15s;
}

.wpep-tab-btn:hover { opacity: 1; }

.wpep-tab-btn[aria-selected="true"] {
    opacity: 1;
    border-bottom-color: #4f46e5;
}

.wpep-tab-btn:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

.wpep-tabpanel { padding-top: 18px; }
.wpep-tabpanel > *:first-child { margin-top: 0; }

.wpep-tabs-vertical { display: flex; gap: 24px; }
.wpep-tabs-vertical .wpep-tablist {
    flex-direction: column;
    border-bottom: 0;
    border-right: 2px solid var(--wpep-border);
    flex-shrink: 0;
}
.wpep-tabs-vertical .wpep-tab-btn {
    border-bottom: 0;
    border-right: 2px solid transparent;
    margin-bottom: 0;
    margin-right: -2px;
    text-align: left;
}
.wpep-tabs-vertical .wpep-tab-btn[aria-selected="true"] { border-right-color: #4f46e5; }
.wpep-tabs-vertical .wpep-tabpanel { padding-top: 0; flex: 1; }

@media (max-width: 767px) {
    .wpep-tabs-vertical { flex-direction: column; }
    .wpep-tabs-vertical .wpep-tablist {
        flex-direction: row;
        border-right: 0;
        border-bottom: 2px solid var(--wpep-border);
    }
}

/* ══════════ CTA / NÚMEROS / ÍCONE ══════════ */

.wpep-cta {
    padding: 32px;
    border-radius: var(--wpep-radius);
    background: var(--wpep-surface);
}

.wpep-cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.wpep-cta-body { flex: 1; min-width: 260px; }
.wpep-cta-title { margin: 0 0 8px; }
.wpep-cta-desc  { margin: 0; opacity: .85; line-height: 1.6; }
.wpep-cta-action { margin-top: 16px; }
.wpep-cta-inline .wpep-cta-action { margin-top: 0; }

.wpep-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

.wpep-stat {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.wpep-stat-value {
    margin: 0;
    font-size: 2.4em;
    font-weight: 800;
    line-height: 1.1;
}

.wpep-stat-label {
    font-size: .875em;
    color: var(--wpep-muted);
}

@media (max-width: 600px) {
    .wpep-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wpep-icon-box-top {
    text-align: center;
}

.wpep-icon-box-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.wpep-icon-box-icon {
    display: inline-block;
    font-size: 2em;
    line-height: 1;
    margin-bottom: 10px;
}

.wpep-icon-box-left .wpep-icon-box-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.wpep-icon-box-title { margin: 0 0 6px; }
.wpep-icon-box-desc  { margin: 0; color: var(--wpep-muted); line-height: 1.55; }

/* ══════════ ACESSO RESTRITO ══════════ */

.wpep-access-denied,
.wpep-trial-ended {
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--wpep-border);
    border-radius: var(--wpep-radius);
    background: var(--wpep-surface);
    margin-top: 24px;
}

.wpep-access-icon {
    display: block;
    font-size: 2.4em;
    margin-bottom: 10px;
}

.wpep-access-title,
.wpep-trial-title { margin: 0 0 8px; }

.wpep-access-text,
.wpep-trial-message {
    margin: 0 auto 20px;
    max-width: 460px;
    color: var(--wpep-muted);
    line-height: 1.6;
}

.wpep-access-actions,
.wpep-trial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0;
}

/* Prévia gratuita esmaece no fim, sinalizando que há mais conteúdo */
.wpep-free-preview {
    position: relative;
    max-height: 60vh;
    overflow: hidden;
}

.wpep-free-preview::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--wpep-bg, #fff) 92%);
    pointer-events: none;
}

/* ══════════ ANIMAÇÕES ══════════ */

@media (prefers-reduced-motion: no-preference) {
    [data-wpep-anim] {
        opacity: 0;
        transition: opacity .55s ease, transform .55s ease;
    }

    [data-wpep-anim="fade-up"]   { transform: translateY(22px); }
    [data-wpep-anim="fade-down"] { transform: translateY(-22px); }
    [data-wpep-anim="zoom-in"]   { transform: scale(.94); }

    [data-wpep-anim].wpep-in-view {
        opacity: 1;
        transform: none;
    }
}

/* Sem suporte a JS ou com movimento reduzido, o conteúdo aparece normalmente */
@media (prefers-reduced-motion: reduce) {
    [data-wpep-anim] { opacity: 1 !important; transform: none !important; }
}

.no-js [data-wpep-anim] { opacity: 1; transform: none; }

/* ══════════ DEZENAS DE LOTERIA ══════════ */

.wpep-lottery {
    margin: 0;
}

.wpep-lottery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* counter-reset impede que o <ol> herde numeração do tema: o número
       visível é a dezena, não a posição na lista. */
    counter-reset: none;
}

.wpep-lottery-grid > li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    font-size: 1.45rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--wpep-lottery-fg, #052e16);
    background: var(--wpep-lottery-bg, #22c55e);
    list-style: none;
}

.wpep-lottery-grid > li::marker,
.wpep-lottery-grid > li::before {
    content: none;
}

.wpep-lottery-circle  .wpep-lottery-number { border-radius: 50%; }
.wpep-lottery-rounded .wpep-lottery-number { border-radius: 12px; }
.wpep-lottery-square  .wpep-lottery-number { border-radius: 0; }

.wpep-lottery-number.is-highlight {
    background: var(--wpep-lottery-highlight, #f59e0b);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .28);
}

.wpep-lottery-caption {
    margin-top: .75rem;
    font-size: .9rem;
    opacity: .75;
}

@media (max-width: 480px) {
    .wpep-lottery-grid > li {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* Bloco de código vindo do parser de markdown */
.wpep-code {
    overflow-x: auto;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: .9rem;
    line-height: 1.6;
}

/* Primeiro parágrafo marcado como linha fina */
.wpep-lead {
    font-size: 1.15em;
    opacity: .9;
}
