/*
Theme Name:     cointelegraph
Theme URI:      n/a
Template:       kadence
Author:         Pro Author
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/


/* Colors */

/* Theme colors: please adjust in customizer
 * --global-palette1:#FABC2C | Accent | Figma: --ct-ds-primary-base
 * --global-palette2:#945903 | Accent alt | Figma: --ct-secondary-base
 * --global-palette3:#000000 | Strongest Text | Figma: --ct-ds-base-black
 * --global-palette4:#192025 | Strong Text | Figma: --ct-fg-strong
 * --global-palette5:#39464C | Medium text | Figma: --ct-fg-base
 * --global-palette6:#798890 | Subtle text | Figma: --ct-fg-muted
 * --global-palette7:#F1F6F7 | Subtle background | Figma: --ct-bg-level-2
 * --global-palette8:#EFF5F6 | Lighter background | Figma: --ct-ds-bg-level-2
 * --global-palette9:#FABC2C | white | Figma: --ct-bg-level-1
 */

:root {
    /* Additional colors */
    --ct-border-base: #E2E9EB;
    --ct-border-strong: #A7B3B9;
    --ct-green-trace: #ECFDF5;
    --ct-red-trace: #FEF2F2;

    /* further variables */
    --ct-content-width: 896px;
    --ct-border-radius: 0.5rem;
    --global-md-spacing: 1.5rem;
    --ct-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.10), 0 10px 15px -3px rgba(0, 0, 0, 0.10);
}

/* Fonts */

a {
    text-decoration: none;
    color: var(--global-palette-highlight-alt);
}

p > a {
    font-weight: 600
}

a:hover {
    text-decoration: underline;
    cursor: pointer;
}

h1, h2, h3 {
    text-align: center;
}

h1, h2, h3, .ft-h1, .ft-h2, .ft-h3 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--global-palette-4)
}

h1, .ft-h1 {
    font-size: 48px;
    letter-spacing: -0.84px;
}

h2, .ft-h2 {
    font-size: 36px;
    letter-spacing: -0.63px;
}

h3, .ft-h3 {
    font-size: 30px;
    letter-spacing: -0.525px;
}

.ft-subheader {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem
}

@media (max-width: 480px) {
    .ft-subheader {
        font-size: 1.125rem
    }
}

.ft-legal {
    font-size: 0.875rem;
    line-height: 1.6
}

@media (max-width: 768px) {
    h1, .ft-h1 {
        font-size: 2.25rem;
        letter-spacing: -0.63px;
    }

    h2, .ft-h2 {
        font-size: 1.875rem;
        letter-spacing: -0.525px;
    }

    h3, .ft-h3 {
        font-size: 1.5rem;
        letter-spacing: -0.42px;
    }

    .ft-legal {
        font-size: 0.75rem;
        line-height: 1.6
    }
}

/* 
 * layout 
 */

/* Set default row section to narrow content width */
.kb-row-layout-wrap {
    max-width: var(--ct-content-width);
    margin: 0 auto 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ct-border-strong)
}

.kb-row-layout-wrap:nth-child(2),
.kb-row-layout-wrap:first-child {
    border: none;
    margin-top: 0;
}

.content-area {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content-wrap .kb-row-layout-wrap:first-child {
    margin-top: 0;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .entry-content-wrap .kb-row-layout-wrap:first-child {
        padding-top: 0;
    }
}

p, ol, ul {
    font-size: var(--normal-font-size);
    margin-bottom: 16px;
    line-height: 28px;
    text-align: start;
}

/*.single-content p {
    margin-bottom: 0.75rem;
}*/


/* 
 * Main Navigation
 */

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

picture img {
    border-radius: 14px;
    margin: 30px auto;
}

.site-branding a.brand {
    max-width: 172px;
    padding: 0.75rem 2rem 0.75rem 0;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
    background: var(--global-palette4);
}

@media (min-width: 1024px) {
    .site-header-section-right {
        justify-content: flex-start;
    }
}

/*
.site-header-main-section-left.site-header-section.site-header-section-left {
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
	background:	var(--global-palette4)20%,
}
*/

/* enlarge navigation to full-width */
.site-main-header-wrap {
    background: linear-gradient(90deg,
    var(--global-palette4) 17%,
    var(--global-palette1) 17%);
    max-width: inherit;
}

@media (min-width: 1024px) and (max-width: 1680px) {
    .site-main-header-wrap {
        background: linear-gradient(90deg, var(--global-palette4) 11%, var(--global-palette1) 11%);
    }
}

@media (min-width: 2000px) {
    .site-main-header-wrap {
        background: linear-gradient(90deg, var(--global-palette4) 22%, var(--global-palette1) 22%);
    }
}


#masthead,
.site-main-header-wrap .site-header-row-container-inner {
    background: none;
}

/* Fix: background is changing to black when scrolling up slightly */
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
    background: none !important;
}

.header-navigation .menu {
    gap: 0.5rem;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a {
    padding: 0.375rem 0.75rem;
    height: auto;
    border-radius: 0.5rem;
}

.nav--toggle-sub .dropdown-nav-toggle {
    display: none;
}

.nav-drop-title-wrap {
    padding-right: 0;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a {
    background: rgba(250 188 44 0.3);
    background: #FDCD51;
    cursor: pointer;
}

/* Mega Menu */

.header-navigation .header-menu-container li.kadence-menu-mega-enabled > ul.sub-menu {
    background: var(--global-palette9);
    display: grid;
    padding: 2rem;
    row-gap: 0 !important;
    justify-content: center;
}

.header-menu-container ul.menu > li.kadence-menu-mega-enabled ul li.menu-item > a {
    color: var(--global-palette4);
    font-size: 0.875rem;
    transition: none;
    padding: 0.5rem;
    background: none;
}

.header-menu-container ul.menu > li.kadence-menu-mega-enabled ul li.menu-item > a:hover {
    background: none;
    text-decoration: underline;
    text-decoration-color: var(--global-palette1);
    text-decoration-thickness: 2px;
}

/* To refactor */
.header-menu-container ul.menu > li.kadence-menu-mega-columns-4 > ul.sub-menu {
    grid-template-columns: repeat(4, 200px)
}

.header-menu-container ul.menu > li.kadence-menu-mega-columns-3 > ul.sub-menu {
    grid-template-columns: repeat(3, 200px)
}

.header-menu-container ul.menu > li.kadence-menu-mega-columns-2 > ul.sub-menu {
    grid-template-columns: repeat(2, 200px)
}

.header-menu-container ul.menu > li.kadence-menu-mega-columns-1 > ul.sub-menu {
    grid-template-columns: repeat(1, 200px)
}

/* Mobile Navigation */

.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus {
    color: var(--global-palette4);
}

.site-header-item-navgation-popup-toggle {
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    background-color: var(--global-palette1);
    padding-left: 1rem;
}

@media (max-width: 1024px) {
    .site-main-header-wrap {
        background: linear-gradient(90deg, var(--global-palette4) 92%, var(--global-palette1) 92%)
    }

    .site-branding a.brand img {
        max-width: 180px;
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .site-main-header-wrap {
        background: linear-gradient(90deg, var(--global-palette4) 95%, var(--global-palette1) 95%)
    }
}

@media (max-width: 480px) {
    .site-main-header-wrap {
        background: linear-gradient(90deg, var(--global-palette4) 90%, var(--global-palette1) 90%)
    }
}

/*
 * Buttons
 */

button, .button, .wp-block-button__link,
.wp-element-button, input[type="button"], input[type="reset"], input[type="submit"] {
    font-weight: 600
}

/*
 * Helper classes
 */

/* floats an element to the right. Display block on mobile */

.ct-float-right {
    float: right
}

@media (max-width: 480px) {
    .ct-float-right {
        float: none;
        display: block;
    }
}

/*
 * Footer
 */

footer {
    background-color: var(--global-palette4);
    color: var(--global-palette9);
    font-size: 0.875rem
}

footer .widget-area .widget-title {
    font-weight: 700;
}

footer .widget-area .widget-title,
.footer-widget-area-inner.site-info-inner {
    color: var(--global-palette6);
    font-size: 0.875rem;
}

footer.site-footer a:not(.wp-block-social-link-anchor) {
    color: var(--global-palette9) !important;
    font-weight: 600;
}

footer.site-footer a:hover {
    color: var(--global-palette1) !important;
}

.footer-widget-area li {
    margin-bottom: 2px;
}

.footer-widget-area {
    text-align: left;
}

.site-bottom-footer-wrap {
    background-color: var(--global-palette3);
}

/* default: 6 column footer for all pages */
footer .site-footer-middle-section-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    footer .site-footer-middle-section-1 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (min-width: 1200px) {
    footer .site-footer-middle-section-1 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* For DE 5 column footer for all pages*/
html[lang="de-DE"] footer .site-footer-middle-section-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    html[lang="de-DE"] footer .site-footer-middle-section-1 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    html[lang="de-DE"] footer .site-footer-middle-section-1 {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Bottom footer */

.site-bottom-footer-inner-wrap {
    padding: 1rem;
}

@media (min-width: 1024px) {
    .site-bottom-footer-inner-wrap {
        padding: 0;
    }
}

.site-bottom-footer-inner-wrap .site-footer-section {
    align-items: center;
}

@media (max-width: 1024px) {
    .site-bottom-footer-inner-wrap {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
}

/* footer partner badge */
.ct-footer-badge {
    position: relative;
}

.ct-footer-badge a:after {
    content: 'Partner';
    background: url('/wp-content/themes/cointelegraph/assets/icons/badge-shape.svg');
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--global-palette4);
    position: absolute;
    text-transform: uppercase;
    font-size: 11px;
    padding: 0 0.5rem 0 1rem;
    font-weight: 700;
    top: 3px;
    margin-left: 0.5rem;
    transition: margin-left 0.4s ease-in-out;
}

.ct-footer-badge a:hover:after {
    margin-left: 0.25rem /* Animate the badge on hover */
}

/*
.ct-footer-badge a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: solid 19px transparent;
    border-left-width: 0;
    border-right-color: var(--global-palette1);
	right: 80px
}*/

/* Social Media Icons: refactor colors */
.site-footer-wrap .wp-block-social-links {
    gap: 0.25rem;
}

.site-footer-wrap .wp-block-social-links .wp-social-link {
    background-color: #4e5d65;
    color: var(--global-palette4) !important;
}

/*
 * 
 * Blocks
 */

/* 
 * Accordion
 */

.wp-block-kadence-accordion {
    margin: 1rem 0;
}

.wp-block-kadence-pane .kt-accordion-header-wrap .kt-blocks-accordion-header {
    background: var(--global-palette8) !important;
    border-radius: var(--ct-border-radius) !important;
    border-left: 1px solid #eeeeee !important;
    padding: 1.25rem !important;
    color: var(--global-palette3);
}

.wp-block-kadence-pane .kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active {
    border-radius: var(--ct-border-radius) var(--ct-border-radius) 0 0 !important;
}


.kt-accordion-panel-inner {
    background: var(--global-palette8) !important;
    border-radius: 0 0 var(--ct-border-radius) var(--ct-border-radius) !important;
}

.kt-blocks-accordion-header .kt-blocks-accordion-title {
    font-weight: 700;
    font-size: 1rem
}

/*
 * Tables
 */

/* default tables */

table tr:first-child,
table th,
.tablepress > :where(thead,tfoot) > * > th {
    background: var(--global-palette8);
}

.tablepress > :not(caption) > * > * {
    font-size: 1rem;
}

.wp-block-table td,
.wp-block-table th,
table tbody td,
table tbody th,
.tablepress > :not(caption) > * > * {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    padding-top: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    vertical-align: middle;
}

.wp-block-table tr:first-child,
.wp-block-table th,
table tbody tr:first-child,
table tbody th,
.tablepress > :where(thead,tfoot) > * > th {
    font-weight: 600;
    color: var(--global-palette-4)
}

table tbody {
    font-size: 1rem;
}

table .wp-block-button a {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    white-space: nowrap;
}

table .wp-block-button a:hover {
    text-decoration: none;
}

table .wp-block-button img {
    width: 1rem;
    height: 1rem;
}


@media (max-width: 768px) {
    .tablepress > :not(caption) > * > * {
        font-size: 0.875rem;
    }

    .wp-block-table td,
    .wp-block-table th,
    table tbody td,
    table tbody th,
    .tablepress > :not(caption) > * > * {
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.wp-block-table,
.tablepress-wrapper {
    box-shadow: var(--ct-shadow);
    border-radius: var(--ct-border-radius);
    overflow-y: hidden;
}


/* Table: Ranking Table */
.tablepress-ranking-table .column-2 {
    text-align: center
}

.tablepress-ranking-table .column-2 img {
    max-width: 80px;
}

.tablepress-ranking-table .column-2 a {
    color: var(--global-palette4);
}

.tablepress-ranking-table .column-1 {
    color: var(--global-palette6)
}

@media (max-width: 768px) {

    .tablepress-ranking-table .column-3,
    .tablepress-ranking-table .column-4,
    .tablepress-ranking-table .column-5 {
        display: flex;
    }

    .tablepress-ranking-table .column-3,
    .tablepress-ranking-table .column-4 {
        border-bottom: none;
        padding-bottom: 0;
    }

    .tablepress-ranking-table .column-3 {
        font-weight: 600;
    }

    table .wp-block-button {
        width: 100%;
    }

    table .wp-block-button a {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .tablepress-ranking-table .row-1 {
        border-bottom: 1px solid #e5e7eb;
    }

    /* Display th col3 and 4 next to each other */
    .tablepress-ranking-table .row-1 .column-3,
    .tablepress-ranking-table .row-1 .column-4 {
        display: inline-block;
    }

    .tablepress-ranking-table .row-1 .column-3 {
        padding-right: 0;
    }

    .tablepress-ranking-table .row-1 .column-4 {
        padding-left: 0;
    }

    .tablepress-ranking-table .row-1 .column-3:after {
        content: "/";
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }

    .tablepress-ranking-table .row-1 .column-5,
    .tablepress-ranking-table .row-1 .column-6 {
        display: none
    }
}

@media (max-width: 400px) {
    /* Hide headline for cryptocurrencies on very narrow devices */
    .tablepress-ranking-table .row-1 .column-4 {
        display: none;
    }

    .tablepress-ranking-table .row-1 .column-3:after {
        display: none
    }
}


/*
 * Block: kadence table of contents
 */

.kb-table-of-content-wrap a {
    text-decoration: none !important;
}

.kb-table-of-contents-title-wrap .kb-table-of-contents-title {
    display: none; /* Force hiding the title */
}

.kb-table-of-content-nav .kb-table-of-content-wrap .kb-table-of-content-list {
    margin-top: 0;
}

@media (max-width: 768px) {
    .kb-table-of-content-wrap {
        padding: 0 !important;
    }

    .kb-table-of-content-wrap a {
        font-size: 1rem;
    }

    .kb-table-of-content-nav .kb-table-of-content-wrap .kb-table-of-content-list {
        padding-left: 1.2rem;
    }
}

/* Yoast breadcrumbs */
p#breadcrumbs {
    font-size: 1rem;
    padding-left: 1rem;
    max-width: var(--global-content-width);
    margin: 0 auto 1rem;
}

/* hreflang Flags */
.site-footer .hreflang-flags-container {
    height: auto !important;
    display: flex !important;
    flex-direction: row;
    gap: 1rem;
    justify-content: center
}

.hreflang-flags-container a {
    display: flex !important;
    gap: 0.25rem;
    align-items: center;
    font-size: 10px;
    flex-direction: column;
}

.hreflang-flags-container[data-flags-size="32"] a {
    height: auto !important
}

@media (min-width: 560px) {
    .hreflang-flags-container a {
        flex-direction: row;
        font-size: 0.75rem
    }
}

/* 
 * Custom Block: alertbox 
 */

.ct__disclaimerbox {
    background: var(--global-palette7);
    padding: 0.75rem 1rem;
    border-radius: var(--ct-border-radius);
    margin-bottom: var(--global-md-spacing);
    font-size: 14px;
    color: var(--global-palette6);
}

.ct__disclaimerbox a {
    color: var(--global-palette5);
    text-decoration: underline;
}

/* 
 * Custom Block: highlights
 */

.ct__highlights {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--global-palette7)
}

.ct__highlights .ct__highlights--advantagesbutton {
    display: flex;
    justify-content: space-between;

}

@media (max-width: 768px) {
    .ct__highlights .ct__highlights--advantagesbutton {
        flex-direction: column;
        margin-bottom: 1rem
    }
}

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

.ct__highlights ul > li > img {
    padding-right: 0.5em;
}

.ct__highlights .wp-block-button a {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    justify-content: center
}

.ct__highlights .wp-block-button a:hover {
    text-decoration: none;
}

.ct__highlights .wp-block-button a > img {
    width: 1em;
}


/* 
 * Custom Block: Pros and Cons
 */

.ct__pros-and-cons {
    margin-bottom: 2rem;
}

.ct__pros-and-cons .ct__pros-and-cons--pros {
    background: var(--ct-green-trace);
}

.ct__pros-and-cons .ct__pros-and-cons--cons {
    background: var(--ct-red-trace);
}


@media (min-width: 768px) {
    .ct__pros-and-cons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.ct__pros-and-cons ul {
    list-style: none;
    padding-left: 0;
}

.ct__pros-and-cons ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.ct__pros-and-cons ul li img {
    margin-top: 0.25rem;
}

.ct__pros-and-cons .ct__pros-and-cons--pros,
.ct__pros-and-cons .ct__pros-and-cons--cons {
    padding: 1rem;
}

@media (min-width: 768px) {
    .ct__pros-and-cons .ct__pros-and-cons--pros,
    .ct__pros-and-cons .ct__pros-and-cons--cons {
        padding: 1.5rem;
    }
}

/* 
 * Custom Block: Operator Overview
 */

.ct__operator_overview {
    display: grid;
    padding: .25rem 0;
    border: 1px solid var(--global-palette7);
    border-radius: var(--ct-border-radius);
    box-shadow: var(--ct-shadow);
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .ct__operator_overview {
        grid-template-columns: repeat(2, 1fr)
    }

;
}

@media (min-width: 980px) {
    .ct__operator_overview {
        grid-template-columns: 2fr 3fr;
    }

;
}

.ct__operator_overview__heading {
    text-transform: uppercase;
    color: var(--global-palette2);
    font-weight: 600;
    font-size: .875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ct__operator_overview__heading a {
    font-size: 0.75rem;
    border-radius: var(--ct-border-radius);
    border: 1px solid var(--ct-border-base);
    text-transform: none;
    color: var(--global-palette4);
    padding: 0.25rem 0.25rem 0.25rem 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    gap: 0.25rem;
    text-decoration: none;
}

.ct__operator_overview__heading img {
    max-width: 1rem;
}

.ct__operator_overview__value {
    font-size: 1.25rem;
    font-weight: 600;
}

.ct__operator_overview__cell {
    padding: 1rem;
    border-bottom: 1px solid var(--global-palette7);
}

.ct__operator_overview__cell:nth-last-child(-n+2) {
    border-bottom: none;
}

/* 
 * Custom Block: Operator Hero
 */

.ct__operator_hero {
    background: linear-gradient(180deg, #000 0%, #37465E 100%);
    color: #fff;
    text-align: center;
}

.ct__operator_hero__container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1rem 2rem;
}

.ct__operator_hero__heading {
    margin-bottom: 2.5rem;
}

.ct__operator_hero__heading h1 {
    color: var(--global-palette9);
    margin-bottom: 0.5rem;
}

.ct__operator_hero__logo {
    display: flex;
    justify-content: center;
}

.ct__operator_hero__logo img {
    border-radius: var(--ct-border-radius);
    height: 100%;
}


.ct__operator_hero__content {
    background: var(--global-palette3);
    border-radius: var(--ct-border-radius);
}

.ct__operator_hero__content table tbody td,
.ct__operator_hero__content table tbody th {
    border: none;
    text-align: left;
}

.ct__operator_hero table tr:first-child,
.ct__operator_hero table th {
    background: none;
}

.ct__operator_hero table th {
    text-transform: uppercase;
    color: var(--global-palette1);
    font-weight: 600;
    font-size: .875rem;
}

.ct__operator_hero .ct__operator_hero__accepted_currencies > div {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.ct__operator_hero .ct__operator_hero__accepted_currencies img {
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border-radius: 50%;
}


/* Ads discloure modal */

.ct__operator_hero label.ct__operator_hero__disclosure-toggle {
    text-decoration: underline;
    color: var(--global-palette1);
}

.ct__operator_hero .modal {
    display: none;
    position: absolute;
    z-index: 1;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: var(--global-palette9);
    max-width: 420px;
    padding: 0.75rem 1rem;
    background: var(--global-palette3);
    z-index: 9999
}

.ct__operator_hero__heading > div {
    position: relative;
    display: inline-block;
    font-size: 1rem;
}


#disclosure-toggle {
    display: none
}

/* Display the modal when the checkbox is checked */
#disclosure-toggle:checked + .modal {
    display: block;
}


@media (max-width: 1024px) {

    .ct__operator_hero__content table tbody td,
    .ct__operator_hero__content table tbody th {
        text-align: center;
    }

    .ct__operator_hero th {
        position: absolute; /* Hide table header on smaller devices */
        top: -99999px;
    }

    .ct__operator_hero td {
        display: block;
    }

    .ct__operator_hero table td::before {
        content: attr(data-label);
        word-break: break-word;
        display: block;
        text-transform: uppercase;
        color: var(--global-palette1);
        font-weight: 600;
        font-size: .875rem;
    }

    .ct__operator_hero__logo {
        display: none
    }

}

@media (min-width: 1024px) {
    /* display Logo and bonus code next to each other */
    .ct__operator_hero__logo {
        max-width: 128px;
        display: inline-block;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .ct__operator_hero__content {
        display: inline-block;
        min-height: 96px;
    }

    .ct__operator_hero__content table tbody th {
        padding-bottom: 0;
    }

    .ct__operator_hero__content table tbody td {
        padding-top: 0;
    }

}

.ct__operator_hero__content__bonus {
    font-size: 1.5rem;
}

/* Bonus Code */
.ct__operator_bonus-code {
    display: flex;
    border-radius: var(--ct-border-radius);
    cursor: pointer;
    max-width: max-content;
    padding: 0.5rem 0.75rem;
    justify-content: space-between;
}

.ct__operator_bonus-code input {
    background: none;
    color: var(--global-palette9);
    font-size: 0.875rem;
    border: none;
    padding: 0;
}

.ct__operator_bonus-code input:focus {
    color: var(--global-palette9);
}

.ct__operator_bonus-dark-theme {
    color: var(--global-palette7);
    background: var(--global-palette4);
}

@media (max-width: 1024px) {
    .ct__operator_bonus-code {
        margin: 0.5rem auto 0;
    }
}

/* 
 * Custom Block: Operator Currencies
 */

.ct__operator_currencies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--global-palette7);
    border-radius: var(--ct-border-radius);
    box-shadow: var(--ct-shadow);
    margin-top: var(--global-sm-spacing);
    margin-bottom: var(--global-sm-spacing);
}

.ct__operator_currencies__item {
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    min-width: 4rem;
}

.ct__operator_currencies__item img {
    max-width: 40px;
}

@media (max-width: 768px) {
    .ct__operator_currencies {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .ct__operator_currencies__item {
        flex-direction: row;
    }

    .ct__operator_currencies__item img {
        max-width: 1.5rem
    }
}

@media (max-width: 480px) {
    .ct__operator_currencies {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* 
 * Custom Block: rating table
 */

.ct__rating-table {
    box-shadow: var(--ct-shadow);
    border: 1px solid var(--global-palette7);
    border-radius: var(--ct-border-radius);
    overflow: hidden;
    text-align: left;
    margin-top: var(--global-sm-spacing);
}

.ct__rating-table table {
    border-spacing: 0
}

.ct__rating-table th {
    font-weight: 600;
}

.ct__rating-table tr:last-child td:nth-last-child(-n+2) {
    border-bottom: 0;
}

.ct__rating-table__rating span {
    min-width: 2.5rem;
    text-align: right;
    font-weight: 600;
}

.ct__rating-table__rating {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    justify-content: end;
}

@media (max-width: 480px) {
    .ct__rating-table table tr {
        display: flex;
        flex-direction: column;
    }

    .ct__rating-table table tr > td:first-child,
    .ct__rating-table table tr > th:first-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .ct__rating-table__rating {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .ct__rating-table__rating span {
        color: var(--global-palette2);
    }
}

/*
 * Custom block: Last updated
 */

.ct__last-updated {
    margin: -1rem auto 1rem;
    color: var(--global-palette4);
}

/*
 * Custom block: CTA Floating Bar
 */

.wp-block-lazyblock-cta-floating-bar {
    display: flex; /* floating bar wrapper; centeres the floating bar */
    justify-content: center;
}

.ct__cta_floating_bar {
    opacity: 0; /* Hide Floating Bar by default*/;
    position: fixed;
    z-index: 999;
    bottom: 2rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2),
    var(--ct-shadow);
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--global-palette4);
    color: var(--global-palette9);
    max-width: var(--ct-content-width);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.wp-admin .ct__cta_floating_bar {
    position: inherit;
}

.ct__cta_floating_bar__logo {
    max-width: 128px
}

.visible {
    transform: translate(-50%, 0);
}

.ct__cta_floating_bar__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.ct__cta_floating_bar__bonus {
    display: flex;
    flex-direction: column;
}

.ct__cta_floating_bar__bonus span:first-child {
    font-weight: 700;
    line-height: 1.3;
}

.ct__cta_floating_bar .wp-element-button {
    word-break: keep-all;
}

@media (max-width: 768px) {
    .ct__cta_floating_bar {
        bottom: 1rem;
        padding: 0.5rem 1rem;
    }

    .ct__cta_floating_bar__logo {
        display: none;
    }

    .ct__cta_floating_bar .wp-element-button {
        font-size: 0.875rem;
    }
}