/* <GENERAL> */

p.wp-block-post-excerpt__excerpt {
    margin-top: inherit;
    margin-bottom: inherit;
}

.default-radius {
    border-radius: 12px;
}


:where(h1, h2, h3, h4, h5, h6) img {
    max-width: 100%;
    height: auto;
}

:where(h1, h2).wp-block-heading:not(.is-style-no-bottom-border) {

    /* @media (min-width: 781px) { */
    /* text-underline-offset: 0.3em;
        text-decoration: underline;
        text-decoration-thickness: 0.4em;
        padding-bottom: 0.65em;
        text-decoration-color: var(--wp--preset--color--primary-lighter); */
    /* } */
    span {
        position: relative;
        display: inline-block;
        margin-bottom: 0.25em;

        &::after {
            content: '';
            position: absolute;
            bottom: -0.5em;
            left: 0;
            right: 0px;
            border-bottom: 0.4em solid var(--wp--preset--color--primary-lighter);
        }
    }
}

:where(.simple-header-1, .simple-header-2) {
    :where(h1, h2).wp-block-heading:not(.is-style-no-bottom-border) {
        text-decoration: none;
        padding-bottom: initial;
    }
}

:where(.simple-header-1, .simple-header-2) {
    :where(h1, h2).wp-block-heading:not(.is-style-no-bottom-border) {
        padding-bottom: initial;

        span {

            &::after {
                border-bottom: none;
                content: none;
                display: none;
            }
        }
    }
}

.has-primary-light-background-color a {
    color: var(--wp--preset--color--link-dark);
}

a:not([href]) {
    cursor: default;
    text-decoration: none;
    outline: none;
    border: none;
}

a:has(img) {
    text-decoration: none;
}

a:where(:not(.wp-element-button)) {
    word-wrap: break-word;
}

@media (max-width: 781px) {
    .no-bg-img-mobile {
        background-image: none !important;
    }
}

.has-text-align-center {
    text-align: center;
}

.has-link-color:not(.wp-block-button__link) {
    --wp--preset--color--link: initial;
}

/* None gutenberg images */
figure:not([class^="wp-block"]) {
    max-width: 100% !important;

    img {
        max-width: 100%;
        height: auto;
    }
}

:where(.single, .single-guide, .single-casinos, .single-slots) .wp-block-post-content img {
    vertical-align: bottom;
    box-sizing: border-box;
    height: auto;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .wp-block-image.scaling {
        max-width: 40vw;
        margin-bottom: 0.5rem;
    }
}

/* </GENERAL> */

.screen-reader-text {
    display: none;
}

@media print,
screen and (min-width: 1024px) {
    .hide-for-large {
        display: none !important;
    }
}

@media screen and (max-width: 1023px) {
    .show-for-large {
        display: none !important;
    }
}


p:empty {
    display: none;
}

body.single-slots .entry-content>*:not(:first-child):not(h1):not(h2) {
    content-visibility: auto;
}


/* <DEFAULT WP MENU> */
.wp-block-navigation__responsive-container.has-modal-open.is-menu-open {
    top: var(--wp-admin--admin-bar--height, 0px);
}


.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
    padding-top: 0;
    /* var(--wp--preset--spacing--5); */
}

@media (min-width: 782px) {
    .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
        transform: translateY(-50%);
        top: 50%;
    }

    .wp-block-navigation .wp-block-navigation-item:hover {
        background-color: rgba(0, 0, 0, 0.035);
    }

    .wp-block-navigation .wp-block-navigation-item:hover .wp-block-navigation__submenu-icon {
        background-color: transparent;
    }
}

/* </ DEFAULT WP MENU> */


/* <HEADER> */


/* <SEARCH BUTTON> */
.wp-block-search.wp-block-search__button-only {
    .wp-block-search__inside-wrapper {
        position: relative;

        .wp-block-search__input {
            position: absolute;
            bottom: -5px;
            right: 0;
            transform: translateY(100%);
        }

        .wp-block-search__button[aria-expanded=true] {
            max-width: initial
        }
    }
}

/* .wp-block-search.wp-block-search__button-only  */

/* </SEARCH BUTTON> */


/* <MOBILE MENU> */

.wp-block-navigation:not(.has-background).mobile-menu {

    .wp-block-navigation__responsive-container {
        &.is-menu-open {
            background-color: rgba(0, 0, 0, 0.5);
            padding: 0;

            .wp-block-navigation__responsive-close {
                position: relative;
                top: 0;
                bottom: 0;
                padding: clamp(1rem, var(--wp--style--root--padding-top), 20rem) clamp(1rem, var(--wp--style--root--padding-right), 20rem) clamp(1rem, var(--wp--style--root--padding-bottom), 20rem) clamp(1rem, var(--wp--style--root--padding-left), 20em);
                min-width: 100%;
                background-color: white;
                margin-left: 0;
                /* height: 100%; */

                @media print,
                screen and (min-width: 768px) {
                    max-width: max-content;
                    min-width: 260px;
                }

                button {
                    /* cursor: default; */
                    outline: none;
                    border: none;
                }
            }


        }

    }

    /* .wp-block-navigation-item.has-child.open-on-click {

        &:has(> .wp-block-navigation-submenu__toggle[aria-expanded="false"]) {
            & > .wp-block-navigation-submenu {
                display: none;
            }
        }
    } */
}

/* </MOBILE MENU> */

/* </HEADER> */



/* <Author Footer Box> */
.author-widget {
    background-color: var(--wp--preset--color--secondary);
    /* margin-bottom: var(--wp--preset--spacing--50); */
}

.author-widget>div {
    position: relative;
    display: grid;
    /* padding-left: var(--wp--preset--spacing--10);
    padding-right: var(--wp--preset--spacing--10); */
    row-gap: var(--wp--preset--spacing--10);
}

@media print,
screen and (min-width: 1024px) {
    .author-widget>div {
        column-gap: var(--wp--preset--spacing--20);
        grid-template-columns: 1fr 1fr;
    }
}

.author-widget .author-cell:first-child:last-child {
    grid-column: 1 / 3;
}

.author-widget .author-cell {
    position: relative;
    top: var(--wp--preset--spacing--30);
    display: grid;
    grid-template-columns: min-content 1fr min-content;
    grid-template-rows: auto 1fr min-content;
    column-gap: var(--wp--preset--spacing--10);
    border-radius: 12px;
    background-color: var(--wp--preset--color--white);
    padding: var(--wp--preset--spacing--20);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, .04);
}

/* @media print, screen and (min-width: 1024px) {
    .author-widget .author-cell {
        grid-template-columns: 110px 1fr max-content;
    }
} */

.author-widget .author-cell :where(.author-bio, .author-link) {
    grid-column: 1 / 4;
    font-size: var(--wp--preset--font-size--small);
}

.author-widget .author-cell .author-links a {
    text-decoration: none;
}

.author-widget .author-cell .author-image img {
    display: block;
    border-radius: 9999px;
    width: 75px;
    height: 75px;
}

@media print,
screen and (min-width: 1024px) {
    .author-widget .author-cell .author-image img {
        width: 110px;
        height: 110px;
    }
}

.author-widget .author-cell .author-info {
    display: grid;
    align-items: center;
    grid-template-rows: min-content min-content min-content;
    margin: auto 0;
    font-size: var(--wp--preset--font-size--small);
}

.author-name {
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 600;
}

/* </Author Footer Box> */


/* <Author Page> */
.author-post-listing {
    &:has(.wp-block-query-no-results) {
        display: none;
    }

    .wp-block-query-pagination-numbers {
        display: flex;

        .page-numbers {
            margin: 0;
        }
    }
}

/* </Author Page> */


/* </Footer> */
.site-footer {
    padding-top: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--30);
    background-color: var(--wp--preset--color--secondary-light);
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

footer.wp-block-template-part .author-card {
    border-radius: 12px;
}

footer.wp-block-template-part .author-card .avatar {
    border-radius: 90px;
    width: 110px;
    height: 110px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.site-footer .footer-column-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: var(--wp--preset--spacing--10);

    margin: 0 auto;
    max-width: var(--wp--style--global--wide-size);
}

@media print,
screen and (min-width: 1024px) {
    .site-footer .footer-column-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding-left: var(--wp--preset--spacing--10);
}

.site-footer ul ul {
    list-style: circle;
}

/* <Footer> */

/* TODO: Remove when shortcodes has been turned into blocks */

.casino-features {
    padding: 12px;
    border-radius: 12px;
    background: var(--wp--preset--color--grey-light);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
    container-type: inline-size;
    row-gap: 12px;
    column-gap: 12px;
    margin: 25px 0 45px;

    .deprecated-notice {
        grid-column: 1 / -1;
        text-align: center;
        color: red;
    }
}

.casino-features .casino-features__item {
    border-radius: 6px;
    background: var(--wp--preset--color--white);
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.casino-features__content {
    font-size: 0.875rem;
    line-height: 18px;
    font-weight: 500;
}

.casino-features__content span {
    font-size: .765rem;
    line-height: 15px;
    display: block;
    font-weight: 400;
    margin: 0 0 5px;
}


/* <YOAST> */
@media print,
screen and (max-width: 768px) {
    .yoast-breadcrumbs {
        font-size: var(--wp--preset--font-size--x-small) !important;
    }

    /* .yoast-breadcrumbs > span > :first-child:last-child {
        display: none;
    } */
}

/* </YOAST> */


/* <CF7> */

.wpcf7-form :where(input, textarea) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.5rem;
    border: 1px solid #a7a7a7;
    border-radius: 12px;
    background-color: #fefefe;
    box-shadow: inset 0 1px 2px rgba(62, 62, 62, .1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #3e3e3e;
    transition: box-shadow .5s, border-color .25s ease-in-out;
    appearance: none;
}

/* </CF7> */


/* <HOME> */
.home-button-wrapper {
    overflow: auto;
    position: relative;
    z-index: 2;

    &:not(.new) {
        margin-top: clamp(-90px, -9vw, -40px);
    }

    .wp-block-column {
        min-width: 100px;
        padding-top: var(--wp--preset--spacing--20);
        padding-bottom: var(--wp--preset--spacing--5);
        padding-left: var(--wp--preset--spacing--5);
        padding-right: var(--wp--preset--spacing--5);
        border-radius: 0 0 12px 12px;

        &:hover {
            background: var(--wp--preset--color--primary);

            a {
                color: white !important;
            }

            img {
                filter: invert(0.5) brightness(100);
            }
        }

    }

    a {
        text-decoration: none;
    }
}


.home-top-columns {
    .left-col {
        &>.wp-block-group {
            text-align: center;
        }
    }

    .right-col {
        .price-amount {
            -webkit-text-stroke: 1px black;
            text-shadow: 1px 2px 0px black;
        }

        .wp-block-buttons {
            width: 50%;
        }

        .visit-btn {}
    }
}

@media print,
screen and (min-width: 768px) {
    .home-top-columns {
        .left-col {
            &>.wp-block-group {
                text-align: left;
            }
        }

        .right-col {
            .wp-block-buttons {
                width: 75%;
            }
        }
    }
}

/* </HOME> */

/* <DETAILS TOOLTIP> */
details.wp-block-details.tooltip {
    position: relative;
}

details.wp-block-details.tooltip>*:not(summary) {
    position: absolute;
    z-index: 10;
    background: white;
    width: clamp(200px, 320px, 400px);
    box-shadow: 0px 3px 5px 5px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 15px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
}

/* <DETAILS TOOLTIP> */


/* <SEARCH> */
.search-pagination-container {
    .wp-block-query-pagination-numbers {
        display: flex;

        .page-numbers {
            margin: 0;
        }
    }
}

/* </SEARCH> */