/*
Theme Name: Pokatheme Child
Template: pokatheme
Version: 1.0
*/

.poka_author_info__shortcode {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 10px 2px;
    background: #e8f4fa;
    color: #050c2f;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    width: max-content;
    max-width: 100%;
    margin: 12px 0;
}

.poka_author_info__shortcode .author {
    color: #134d9c;
}

.poka_author_info__shortcode a:hover {
    text-decoration: underline;
}

.poka_custom-author-box__image img {
    width: 80px;
    height: 80px;
    border-radius: 200px;
    overflow: hidden;
    background: #ddd;
}

.poka_custom-author-box {
    border: 1px solid #ccc;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
}

.poka_custom-author-box__social {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 24px;
}

.poka_custom-author-box__social a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #655a95;
    color: #fff;
    border-radius: 200px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    padding: 6px 4px;
    font-size: 14px;
}

.poka_custom-author-box__social a:hover {
    background: #4b3f6b;
    color: #fff;
}

.poka_custom-author-box__social a img {
    max-width: 18px!important;
    width: 18px!important;
    height: auto!important;
    display: block!important;
}

@media only screen and (max-width: 768px) {
    .poka_custom-author-box__content {
        width: 100%;
        max-width: 100%;
        flex: 100%;
    }
}

/* ==========================================================
   Table list v2 (casinos) — logo box fixes
   Parent builds the box with an aspect-ratio hack (height:0 +
   padding-bottom:55%) and centers the image only when it is
   wrapped in a link (.logo-box a img). Replace that with a
   fixed-height flex box so the logo is always centered and the
   frame matches the compact design — with or without a link.
   ========================================================== */
.table-s2 .item .item-row .col-logo .logo-box {
    height: 84px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    /* the rank number is a flex sibling now, no reserved margin needed */
    margin-left: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
}

.table-s2 .item .item-row .col-logo .logo-box a {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.table-s2 .item .item-row .col-logo .logo-box img {
    position: static !important;
    margin: 0 auto !important;
    /* logo fills nearly the whole frame — no wasted padding around it */
    max-width: 94% !important;
    max-height: 92% !important;
    width: auto !important;
    height: auto !important;
}

@media only screen and (max-width: 768px) {
    .table-s2 .item .item-row .col-logo .logo-box {
        height: 90px !important;
    }
}

/* Corner tag badge (Casino Tag fields) */
.table-s2 .item {
    position: relative;
}

.table-s2 .item.item--has-tag {
    padding-top: 34px;
}

/* extra room above the table so the first row's tag isn't clipped */
.table-s2 {
    padding-top: 14px;
}

.table-s2 .item .tbl-tag {
    position: absolute;
    top: 6px;
    left: 12px;
    display: inline-block;
    background: #ffd54d;
    color: #1d2327;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 2;
}

/* ==========================================================
   Expandable details panel ("More info") under table rows
   ========================================================== */
.table-s2 .item .tbl-details-toggle {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #134d9c;
    text-decoration: none;
    cursor: pointer;
}

.table-s2 .item .tbl-details-toggle:hover {
    text-decoration: underline;
    color: #134d9c;
}

.table-s2 .item .tbl-details-toggle .td-arr::after {
    content: "\25BE"; /* ▾ */
    display: inline-block;
    margin-left: 3px;
    transition: transform 200ms ease;
}

.table-s2 .item .tbl-details-toggle.is-open .td-arr::after {
    transform: rotate(180deg);
}

.table-s2 .item .tbl-details {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 18px 22px;
    margin-top: 15px;
    padding: 18px 20px;
    background: #f5f8fb;
    border-radius: 5px;
}

.table-s2 .item .tbl-details.is-open {
    display: grid;
}

/* desktop: always one row — as many equal columns as there are sections */
@media only screen and (min-width: 1100px) {
    .table-s2 .item .tbl-details {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }
}

.table-s2 .item .tbl-details .td-sec h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    color: #134d9c;
    margin: 0 0 10px;
}

.table-s2 .item .tbl-details .td-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #b9c7d9;
    font-size: 13px;
}

.table-s2 .item .tbl-details .td-row .td-lbl {
    color: #134d9c;
}

.table-s2 .item .tbl-details .td-row .td-val {
    font-weight: 700;
    text-align: right;
}

.table-s2 .item .tbl-details .td-row .td-yes {
    color: #1d9d47;
    font-weight: 700;
}

.table-s2 .item .tbl-details .td-row .td-no {
    opacity: 0.5;
}

@media only screen and (max-width: 768px) {
    .table-s2 .item .tbl-details {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Sort switch: recommended order / top rated
   ========================================================== */
/* "Ad Disclosure" label above the table (tooltip text from the ranking) */
.table-s2 .tbl-ad-disclosure {
    margin-bottom: 8px;
}

.table-s2 .tbl-ad-disclosure .pr-info {
    font-size: 12px;
    font-weight: 600;
    color: #134d9c;
    border-bottom: 1px dotted #134d9c;
}

.table-s2 .tbl-ad-disclosure .pr-tip {
    left: 0;
    transform: none;
    width: 320px;
}

.table-s2 .tbl-ad-disclosure .pr-tip::before {
    left: 20px;
    transform: none;
}

.table-s2 .tbl-sort-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* sort select sticks to the right; pills stay left */
.table-s2 .tbl-sort-select-mode {
    margin-left: auto;
}

.table-s2 .tbl-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-s2 .tbl-filter-pill {
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #d6dee8;
    border-radius: 8px;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: all 200ms ease;
}

.table-s2 .tbl-filter-pill:hover {
    border-color: #134d9c;
    color: #134d9c;
}

.table-s2 .tbl-filter-pill.is-active {
    background: #134d9c;
    border-color: #134d9c;
    color: #fff;
}

/* rows hidden by an active filter pill */
.table-s2 .item.item--filtered {
    display: none;
}

.table-s2 .tbl-sort-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 6px 30px 6px 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23134d9c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    border: 1px solid #d6dee8;
    border-radius: 4px;
    color: #1d2327;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 200ms ease;
}

.table-s2 .tbl-sort-select:hover,
.table-s2 .tbl-sort-select:focus {
    border-color: #134d9c;
    outline: none;
}

/* ==========================================================
   "Show more" — rows past the limit are CSS-hidden only
   (full list stays in the HTML for bots and the schema)
   ========================================================== */
.table-s2 .item.item--hidden {
    display: none;
}

.table-s2 .tbl-show-more-wrap {
    text-align: center;
    padding: 18px 0 4px;
}

.table-s2 .tbl-show-more {
    display: inline-block;
    padding: 12px 45px;
    background: #fff;
    border: 2px solid #134d9c;
    border-radius: 5px;
    color: #134d9c;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 250ms ease;
}

.table-s2 .tbl-show-more:hover {
    background: #134d9c;
    color: #fff;
}

/* ==========================================================
   "How we rate" card — [how_we_rate] shortcode
   ========================================================== */
.poka-hwr {
    background: #fff;
    border-radius: 14px;
    padding: 30px 35px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    margin: 20px 0;
}

.poka-hwr .poka-hwr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px 25px;
    align-items: start;
}

.poka-hwr .hwr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: #f5f8fb;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 200ms ease, transform 200ms ease;
}

.poka-hwr .hwr-row:hover {
    background: #ecf2f9;
    transform: translateY(-1px);
}

.poka-hwr .hwr-row .hwr-name {
    color: #1d2327;
}

.poka-hwr .hwr-row .po-stars {
    font-size: 17px;
    flex-shrink: 0;
}

.poka-hwr .poka-hwr-text {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid #e8edf3;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 15px;
    line-height: 1.75;
    color: #40464d;
}

.poka-hwr .poka-hwr-text p {
    margin: 0;
}

.poka-hwr .poka-hwr-text p + p {
    margin-top: 14px;
}

@media only screen and (max-width: 575px) {
    .poka-hwr {
        padding: 20px;
    }
}

/* ==========================================================
   Expert rating block — "Meidän arvosana"
   ========================================================== */
.poka-rating .pr-head {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* in the details panel the section heading style is inherited instead */
.tbl-details .td-sec--rating .pr-head {
    font-size: 15px;
    text-transform: uppercase;
    font-style: italic;
    color: #134d9c;
}

.poka-rating .pr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
}

.poka-rating .pr-row:nth-child(even) {
    background: #f4f4f4;
    border-radius: 4px;
}

/* single overall expert rating (stars + "4.5/5" side by side) */
.poka-rating .pr-row--single {
    justify-content: flex-start;
    gap: 10px;
}

.poka-rating .pr-score {
    font-size: 15px;
    font-weight: 700;
}

/* "Kaikki" reset pill sits first and reads as the default state */
.table-s2 .tbl-filter-pill--all {
    font-weight: 700;
}

/* ==========================================================
   Compact row layout: #rank | logo | name+stars | bonus | button,
   with a facts strip and payment chips underneath.
   Replaces the old pros column + expandable details panel.
   ========================================================== */

/* !important is required: the parent's css/styles.min.css is enqueued AFTER
   this file, so equal-specificity rules there would otherwise win. */
.table-s2 .item .item-row .col-logo {
    width: 20% !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-s2 .item .item-row .col-rating {
    width: 22% !important;
}

.table-s2 .item .item-row .col-bonus {
    width: 34% !important;
}

.table-s2 .item .item-row .col-btn {
    width: 24% !important;
}

/* position number — a static flex sibling, so #11, #12 … never slide
   under the logo the way the parent's absolute positioning did */
.table-s2 .item .item-row .col-logo .rank-num {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin-top: 0 !important;
    flex: 0 0 auto;
    min-width: 32px;
    text-align: right;
    color: #7a8496;
    font-size: 16px !important;
    font-weight: 700;
}

/* Bonus box — the headline offer of the row, so it is framed and weighted
   to read as one: warmer fill, 2px border, bold text. */
.table-s2 .item .item-row .col-bonus strong {
    display: block;
    background: #fff6dd;
    border: 2px solid #f2c14e;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #2d2d2c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

/* tighter rows — less air around the logo frame and the strips */
.table-s2 .item {
    padding: 8px 12px !important;
}

.table-s2 .item.item--has-tag {
    padding-top: 30px !important;
}

/* facts strip: Minimitalletus / Pay'n'play / Lisenssi */
.table-s2 .item .item-row .tbl-facts {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 22px;
    margin-top: 8px;
    font-size: 14px;
    color: #5a6478;
}

.table-s2 .item .item-row .tbl-facts .tf-item strong {
    color: #2d2d2c;
}

/* payment method chips */
.table-s2 .item .item-row .tbl-pays {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.table-s2 .item .item-row .tbl-pay-chip {
    display: inline-block;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #5a6478;
    background: #fff;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .table-s2 .item .item-row .col-logo {
        width: 26% !important;
    }

    .table-s2 .item .item-row .col-rating {
        width: 24% !important;
    }

    .table-s2 .item .item-row .col-bonus {
        width: 26% !important;
    }

    .table-s2 .item .item-row .col-btn {
        width: 24% !important;
    }
}

@media (max-width: 767px) {
    .table-s2 .item .item-row .col-logo,
    .table-s2 .item .item-row .col-rating,
    .table-s2 .item .item-row .col-bonus,
    .table-s2 .item .item-row .col-btn {
        width: 100% !important;
    }

    .table-s2 .item .item-row .tbl-facts {
        gap: 4px 16px;
        font-size: 13px;
    }
}

/* overlay stars (support halves: fill width = score %) */
.po-stars {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

.po-stars .po-stars-bg {
    color: #d5d5d5;
}

.po-stars .po-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f7c31d;
}

/* ⓘ tooltip */
.pr-info {
    position: relative;
    display: inline-flex;
    cursor: help;
    outline: none;
}

.pr-info .pr-i {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: #9aa4ae;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
}

.pr-info .pr-tip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 80vw;
    background: #6b9bd1;
    color: #fff;
    padding: 15px 17px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    text-transform: none;
    font-style: normal;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    z-index: 20;
}

.pr-info .pr-tip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #6b9bd1;
}

.pr-info:hover .pr-tip,
.pr-info:focus .pr-tip {
    display: block;
}

/* smaller ⓘ inside detail-panel rows (e.g. Kotiutusaika verification) */
.tbl-details .td-row .pr-info .pr-i {
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 10px;
    vertical-align: 1px;
}

/* the icon sits at the right edge (after the value) — anchor the tooltip
   to the right so it doesn't overflow the column */
.tbl-details .td-row .td-val .pr-tip {
    left: auto;
    right: -6px;
    transform: none;
}

.tbl-details .td-row .td-val .pr-tip::before {
    left: auto;
    right: 10px;
    transform: none;
}

/* Main-column stars (expert average) */
.table-s2 .item .item-row .col-rating .tbl-stars .po-stars {
    font-size: 21px;
}

/* Operator name + numeric score in the rating column */
.table-s2 .item .item-row .col-rating .tbl-casino-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.table-s2 .item .item-row .col-rating .tbl-casino-name a {
    color: #134d9c;
    text-decoration: none;
}

.table-s2 .item .item-row .col-rating .tbl-casino-name a:hover {
    text-decoration: underline;
}

.table-s2 .item .item-row .col-rating .tbl-rating-num {
    font-size: 13px;
    font-weight: 500;
    color: #7a8496; /* muted grey via colour, NOT opacity, so the ⓘ tooltip beside it stays fully opaque */
    margin-top: 2px;
}

/* the ⓘ methodology tooltip sits right after "4.3/5" */
.table-s2 .item .item-row .col-rating .tbl-rating-num .pr-info {
    margin-left: 4px;
    vertical-align: middle;
}
.table-s2 .item .item-row .col-rating .tbl-rating-num .pr-info .pr-tip {
    font-weight: 400;
    color: #fff;
}

/* Short editorial blurb under the row (1–2 sentences, editable per casino).
   Full-width, centred italic line — reads as a mini review teaser. */
.table-s2 .item .item-row .tbl-casino-desc {
    width: 100%;
    max-width: 680px;
    margin: 10px auto 2px;
    padding: 0 14px;
    text-align: center;
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
    color: #5a6478;
    position: relative;
}

/* subtle quotation flourish so it reads as an editorial note, not a stray line */
.table-s2 .item .item-row .tbl-casino-desc::before {
    content: "\201C"; /* “ */
    color: #c9d0dc;
    font-size: 26px;
    line-height: 0;
    font-style: normal;
    vertical-align: -6px;
    margin-right: 3px;
}

@media (max-width: 767px) {
    .table-s2 .item .item-row .tbl-casino-desc {
        font-size: 14px;
        margin-top: 8px;
        padding: 0 6px;
    }
}

/* ==========================================================
   Expandable "Lisätiedot" panel — row-level wiring
   The panel is a full-width flex item inside .item-row, the
   toggle a <button> living in the button column.
   ========================================================== */
.table-s2 .item .item-row .tbl-details {
    width: 100%;
    flex: 0 0 100%;
    text-align: left;
}

.table-s2 .item .col-btn .tbl-details-toggle {
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.table-s2 .item .col-btn .tbl-details-toggle:focus {
    outline: none;
    text-decoration: underline;
}

/* Logo link: the desktop/mobile pair must keep honouring the responsive
   utilities, which the .logo-box a { display:flex !important } rule above
   would otherwise swallow. */
.table-s2 .item .item-row .col-logo .logo-box a.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .table-s2 .item .item-row .col-logo .logo-box a.d-none.d-lg-block {
        display: flex !important;
    }

    .table-s2 .item .item-row .col-logo .logo-box a.hidden-lg-up {
        display: none !important;
    }
}

/* ==========================================================
   Pikatesti rating rows inside the details panel
   ========================================================== */
.poka-rating .pr-cat {
    text-align: left;
}

/* the ×2 weight on Rahansiirrot — stated, never hidden */
.poka-rating .pr-weight {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 5px;
    border-radius: 3px;
    background: #e8eef7;
    color: #134d9c;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

/* weighted result row, set apart from the categories above it */
.poka-rating .pr-row--total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #d9dfe8;
    background: none !important;
    font-weight: 700;
}

.poka-rating .pr-row--total .pr-total-val {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tbl-details .td-sec--rating .poka-rating .pr-row {
    padding: 6px 8px;
    font-size: 13px;
}

/* ==========================================================
   Bonus box — responsive spacing
   Stacked on phones the box sat flush against the green button
   (measured gap: 0px), which reads as the two overlapping.
   ========================================================== */
@media (max-width: 767px) {
    .table-s2 .item .item-row .col-rating {
        margin-bottom: 6px;
    }

    .table-s2 .item .item-row .col-bonus {
        margin: 2px 0 12px;
    }

    .table-s2 .item .item-row .col-bonus strong {
        font-size: 17px;
        padding: 13px 14px;
    }
}

/* Tablets: the bonus column is the narrow one, so long offers wrapped to
   four lines and stretched the row. A little more width and a smaller
   type size keep them at two. */
@media (min-width: 768px) and (max-width: 991px) {
    .table-s2 .item .item-row .col-bonus {
        width: 30% !important;
    }

    .table-s2 .item .item-row .col-btn {
        width: 20% !important;
    }

    .table-s2 .item .item-row .col-bonus strong {
        font-size: 14px;
        padding: 9px 10px;
    }
}

/* ⓘ next to our measured payout time in the row strip — keeps the label,
   value and icon on one baseline instead of the icon dropping low.
   `gap` is what separates them: a flex container drops the whitespace that
   used to sit after the colon, so without it the row reads "Lisenssi:MGA". */
.table-s2 .item .item-row .tbl-facts .tf-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.table-s2 .item .item-row .tbl-facts .pr-info {
    margin-left: 0;
}

.table-s2 .item .item-row .tbl-facts .pr-info .pr-i {
    width: 15px;
    height: 15px;
    line-height: 15px;
    font-size: 10px;
}

/* On phones the strip itself is the positioning context for the bubble, so
   it can never run off-screen no matter where the icon wrapped to. */
@media (max-width: 767px) {
    .table-s2 .item .item-row .tbl-facts {
        position: relative;
    }

    .table-s2 .item .item-row .tbl-facts .pr-info {
        position: static;
    }

    .table-s2 .item .item-row .tbl-facts .pr-info .pr-tip {
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        width: auto;
        max-width: none;
        transform: none;
        text-align: center;
    }

    .table-s2 .item .item-row .tbl-facts .pr-info .pr-tip::before {
        display: none;
    }
}

/* ==========================================================
   Content tables inside page sections (.text-area)
   The editor emits bare <table border="1">, which renders as
   black hairlines on white. Scoped to .text-area so the casino
   table (built from divs) and the details panel are untouched.
   ========================================================== */
.text-area table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.text-area table td,
.text-area table th {
    border: 0;
    border-bottom: 1px solid #e8edf3;
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
}

/* Header row. Tables made with the editor's "header row" option have a real
   <thead>; plain editor tables put the header in the first row of the body
   (the browser wraps it in a <tbody> that is then the table's first child).
   `tr:first-child` alone must NOT be used: it matches the first row of EVERY
   section, so a table with <thead> got its first body row painted as a
   second header. The <tfoot> total row shares the header look. */
.text-area table thead th,
.text-area table thead td,
.text-area table > tbody:first-child > tr:first-child td,
.text-area table > tbody:first-child > tr:first-child th,
.text-area table tfoot th,
.text-area table tfoot td {
    background: #134d9c;
    color: #fff;
    font-weight: 700;
    border-bottom: 0;
    text-align: center;
}

.text-area table thead strong,
.text-area table > tbody:first-child > tr:first-child strong,
.text-area table tfoot strong {
    color: #fff;
}

.text-area table tbody tr:nth-child(even) td {
    background: #f5f8fb;
}

.text-area table tbody tr:last-child td {
    border-bottom: 0;
}

.text-area table > thead ~ tbody tr:hover td,
.text-area table > tbody:first-child > tr:not(:first-child):hover td {
    background: #eef4fb;
}

/* Payment-method names in [pnp_method_stats] link to their category page. */
.text-area table.pnp-method-stats td a {
    color: #134d9c;
    font-weight: 600;
    text-decoration: none;
}

.text-area table.pnp-method-stats td a:hover {
    text-decoration: underline;
}

/* Every cell keeps the body colour. Colouring the first column blue only
   works for label/value tables — in a two-column comparison like
   plussat/miinukset both sides are equal content, and the blue read as a
   mistake. The header row and the bold <strong> in label tables already
   carry enough hierarchy. */
.text-area table td strong {
    color: #1d2327;
}

.text-area table thead strong,
.text-area table > tbody:first-child > tr:first-child td strong,
.text-area table tfoot strong {
    color: #fff;
}

/* Phones: let a wide table scroll sideways instead of squeezing
   five columns into 375px. */
@media (max-width: 767px) {
    .text-area table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Only for header-less tables: turning <tbody> into its own table next
       to a <thead> would split the columns of the two sections. Tables with
       a <thead> keep one shared column grid and simply scroll. */
    .text-area table > tbody:first-child {
        display: table;
        width: 100%;
        min-width: 560px;
    }

    .text-area table td,
    .text-area table th {
        padding: 10px 11px;
        font-size: 14px;
    }
}

/* ==========================================================
   [box_text] info boxes and in-content links
   ========================================================== */
/* The shortcode outputs a <div>, which the browser hoists out of the
   centred <p> the editor wrapped around it — so the alignment set in
   wp-admin never reaches the box. Centre it here instead. */
.text-area .box-text {
    text-align: center;
    background: #eef4fb;
    border: 1px solid #cfdcec;
    border-radius: 8px;
    padding: 18px 22px;
}

/* The parent theme paints content links `color: inherit`, i.e. exactly the
   colour of the surrounding copy, so internal links are invisible. Its rule
   (.text-area p a:not(.btn)) has equal specificity and loads after this file,
   hence !important. Scoped to prose contexts: the casino table also lives
   inside .text-area and its buttons must stay untouched. */
.text-area p a:not(.btn),
.text-area li a:not(.btn),
.text-area td a:not(.btn),
.text-area .box-text a:not(.btn) {
    color: #134d9c !important;
    text-decoration: underline !important;
}

.text-area p a:not(.btn):hover,
.text-area li a:not(.btn):hover,
.text-area td a:not(.btn):hover,
.text-area .box-text a:not(.btn):hover {
    color: #0f3d7d !important;
    text-decoration: underline !important;
}
