/* =====================================================
   CHEXX Casino — Portuguese review
   Scope: .cx-review
   Tipografia e cores dos links herdadas do tema.
   ===================================================== */

.cx-review {
    --chexx-pt-border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    --chexx-pt-surface: color-mix(in srgb, currentColor 4%, transparent);
    --chexx-pt-surface-hover: color-mix(in srgb, currentColor 8%, transparent);
    --chexx-pt-radius: 12px;
    --chexx-pt-radius-sm: 8px;

    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.cx-review *,
.cx-review *::before,
.cx-review *::after {
    box-sizing: border-box;
}

.cx-review > :first-child {
    margin-top: 0;
}

.cx-review > :last-child {
    margin-bottom: 0;
}

/* Заголовки и основной текст */

.cx-review h1,
.cx-review h2,
.cx-review h3,
.cx-review h4,
.cx-review h5,
.cx-review h6 {
    line-height: 1.3;
    overflow-wrap: anywhere;
    scroll-margin-top: 2rem;
}

.cx-review h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.cx-review h2 {
    margin: 3rem 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: var(--chexx-pt-border);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cx-review h3 {
    margin: 2rem 0 0.75rem;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.cx-review h4,
.cx-review h5,
.cx-review h6 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.05rem;
}

.cx-review p {
    margin: 0 0 1rem;
}

.cx-review ul,
.cx-review ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.cx-review li {
    padding-left: 0.2rem;
}

.cx-review li + li {
    margin-top: 0.4rem;
}

.cx-review li > ul,
.cx-review li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Hero */

.cx-review .cx-hero {
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius);
    background: var(--chexx-pt-surface);
}

.cx-review .cx-hero .cx-lead {
    font-size: 1.1rem;
    line-height: 1.8;
}

.cx-review .cx-score {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
    background: var(--chexx-pt-surface-hover);
}

.cx-review .cx-hero > ul {
    margin-bottom: 0;
}

/* CTA */

.cx-review .cx-cta {
    margin: 1.5rem 0;
    text-align: center;
}

.cx-review .cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    border: 1px solid currentColor;
    border-radius: var(--chexx-pt-radius-sm);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cx-review .cx-btn:hover {
    opacity: 0.82;
}

.cx-review .cx-btn:active {
    transform: translateY(1px);
}

.cx-review .cx-cta small {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Информационные блоки */

.cx-review .cx-takeaways,
.cx-review .cx-tip,
.cx-review .cx-note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: var(--chexx-pt-border);
    border-left: 4px solid currentColor;
    border-radius: var(--chexx-pt-radius-sm);
    background: var(--chexx-pt-surface);
}

.cx-review .cx-takeaways > p:first-child,
.cx-review .cx-tip > p:first-child,
.cx-review .cx-note > p:first-child {
    margin-bottom: 0.65rem;
}

.cx-review .cx-takeaways > :last-child,
.cx-review .cx-tip > :last-child,
.cx-review .cx-note > :last-child {
    margin-bottom: 0;
}

/* Оглавление */

.cx-review .cx-toc {
    margin: 2rem 0;
    padding: 1.25rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius);
    background: var(--chexx-pt-surface);
}

.cx-review .cx-toc > p:first-child {
    margin-bottom: 0.75rem;
}

.cx-review .cx-toc ol {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.cx-review .cx-toc li {
    padding: 0.2rem 0;
}

.cx-review .cx-toc a {
    overflow-wrap: anywhere;
}

/* Изображения */

.cx-review figure {
    min-width: 0;
    margin: 1.75rem 0;
}

.cx-review figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--chexx-pt-radius);
}

.cx-review figcaption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.8;
}

/* Таблицы */

.cx-review .cx-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
    -webkit-overflow-scrolling: touch;
}

.cx-review table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cx-review table caption {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    caption-side: top;
}

.cx-review table th,
.cx-review table td {
    padding: 0.8rem 1rem;
    border: 0;
    border-bottom: var(--chexx-pt-border);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.cx-review table thead th {
    background: var(--chexx-pt-surface-hover);
    font-weight: 700;
}

.cx-review table tbody th {
    font-weight: 650;
}

.cx-review table tbody tr:nth-child(even) {
    background: var(--chexx-pt-surface);
}

.cx-review table tbody tr:last-child th,
.cx-review table tbody tr:last-child td {
    border-bottom: 0;
}

/* Оценки по категориям */

.cx-review .cx-scorecard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.cx-review .cx-scorecard li {
    margin: 0;
    padding: 1rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
    background: var(--chexx-pt-surface);
}

/* Пошаговые инструкции */

.cx-review .cx-steps {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.75rem;
}

.cx-review .cx-steps > li {
    padding: 1rem 1rem 1rem 0.5rem;
    border-bottom: var(--chexx-pt-border);
}

.cx-review .cx-steps > li:last-child {
    border-bottom: 0;
}

.cx-review .cx-steps strong {
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Плюсы и минусы */

.cx-review .cx-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cx-review .cx-pos,
.cx-review .cx-neg {
    min-width: 0;
    padding: 1.25rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius);
    background: var(--chexx-pt-surface);
}

.cx-review .cx-h {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.cx-review .cx-pos > :last-child,
.cx-review .cx-neg > :last-child {
    margin-bottom: 0;
}

/* Интерактивные инструменты */

.cx-review .cx-tool {
    min-width: 0;
    margin: 1.75rem 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius);
    background: var(--chexx-pt-surface);
}

.cx-review .cx-tool > h3:first-child {
    margin-top: 0;
}

/* Тест «Verdade ou mito» */

.cx-review .cx-myth {
    min-width: 0;
    margin: 1rem 0;
    padding: 1rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
    background: var(--chexx-pt-surface);
}

.cx-review .cx-myth > p:first-child {
    font-weight: 650;
}

.cx-review .cx-myth > p:last-child {
    margin-bottom: 0;
}

.cx-review .cx-myth button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0.25rem 0.35rem 0.25rem 0;
    padding: 0.6rem 1rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
}

.cx-review .cx-myth button:hover:not(:disabled) {
    background: var(--chexx-pt-surface-hover);
}

.cx-review .cx-myth button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cx-review .cx-myth.is-right {
    border-left: 4px solid currentColor;
}

.cx-review .cx-myth.is-wrong {
    border-left: 4px dashed currentColor;
}

.cx-review .cx-myth .cx-ans {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: var(--chexx-pt-border);
}

/* Чек-лист перед выводом средств */

.cx-review .cx-check {
    padding-left: 0;
    list-style: none;
}

.cx-review .cx-check > li {
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: var(--chexx-pt-border);
}

.cx-review .cx-check > li:last-child {
    border-bottom: 0;
}

.cx-review .cx-check label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 44px;
    cursor: pointer;
}

.cx-review .cx-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0.3rem 0 0;
    accent-color: auto;
}

.cx-review .cx-check label span {
    min-width: 0;
}

.cx-review .cx-check small {
    display: inline-block;
    margin-top: 0.25rem;
    line-height: 1.5;
    opacity: 0.8;
}

.cx-review progress {
    display: block;
    width: 100%;
    height: 12px;
    margin: 1rem 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    accent-color: auto;
}

/* Общие поля управления */

.cx-review select,
.cx-review input[type="text"],
.cx-review input[type="email"],
.cx-review input[type="number"],
.cx-review input[type="url"],
.cx-review input[type="search"],
.cx-review textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
    background: transparent;
    color: inherit;
    font: inherit;
}

.cx-review textarea {
    min-height: 120px;
    resize: vertical;
}

/* Результаты интерактивных блоков */

.cx-review .cx-out {
    margin-top: 1.25rem;
    padding: 1rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
}

.cx-review [hidden] {
    display: none !important;
}

/* FAQ */

.cx-review .cx-faq {
    margin: 1.5rem 0;
}

.cx-review .cx-faq details {
    margin: 0 0 0.75rem;
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius-sm);
    background: var(--chexx-pt-surface);
}

.cx-review .cx-faq summary {
    min-height: 44px;
    padding: 1rem;
    cursor: pointer;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cx-review .cx-faq details[open] summary {
    border-bottom: var(--chexx-pt-border);
}

.cx-review .cx-faq details > p {
    margin: 0;
    padding: 1rem;
}

/* Итоговый вердикт */

.cx-review .cx-verdict {
    margin: 2rem 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: var(--chexx-pt-border);
    border-radius: var(--chexx-pt-radius);
    background: var(--chexx-pt-surface-hover);
}

.cx-review .cx-verdict > :first-child {
    margin-top: 0;
}

.cx-review .cx-verdict > :last-child {
    margin-bottom: 0;
}

/* Фокус клавиатуры */

.cx-review a:focus-visible,
.cx-review button:focus-visible,
.cx-review summary:focus-visible,
.cx-review select:focus-visible,
.cx-review input:focus-visible,
.cx-review textarea:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Планшеты */

@media (max-width: 860px) {
    .cx-review .cx-two {
        gap: 0.75rem;
    }

    .cx-review .cx-pos,
    .cx-review .cx-neg {
        padding: 1rem;
    }

    .cx-review table th,
    .cx-review table td {
        padding: 0.7rem 0.8rem;
    }
}

/* Смартфоны */

@media (max-width: 600px) {
    .cx-review {
        line-height: 1.7;
    }

    .cx-review h2 {
        margin-top: 2.25rem;
    }

    .cx-review .cx-hero {
        padding: 1rem;
    }

    .cx-review .cx-hero .cx-lead {
        font-size: 1rem;
    }

    .cx-review .cx-two,
    .cx-review .cx-scorecard {
        grid-template-columns: minmax(0, 1fr);
    }

    .cx-review .cx-takeaways,
    .cx-review .cx-tip,
    .cx-review .cx-note {
        padding: 0.9rem 1rem;
    }

    .cx-review .cx-tool {
        padding: 1rem;
    }

    .cx-review .cx-myth {
        padding: 0.85rem;
    }

    .cx-review .cx-cta,
    .cx-review .cx-btn {
        width: 100%;
    }

    .cx-review table {
        font-size: 0.875rem;
    }

    .cx-review .cx-faq summary {
        padding: 0.85rem 1rem;
    }
}

/* Уменьшение анимации */

@media (prefers-reduced-motion: reduce) {
    .cx-review .cx-btn {
        transition: none;
    }
}