﻿.popular_events_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popular_events_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
}

.popular_events {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.popular_events_nav {
    top: 2px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
}

.popular_events_nav_button {
    all: unset;
    width: 132px;
    height: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--dark);
    border: 2px solid var(--dark);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
}

    .popular_events_nav_button[data-active="false"]:focus,
    .popular_events_nav_button[data-active="false"]:active {
        color: var(--light);
        background-color: var(--dark);
        transition: background-color 0.2s ease-out;
    }

.popular_events_nav_button_text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.popular_events_nav_button[data-active="true"] .popular_events_nav_button_text {
    color: var(--light);
}

.popular_events_nav_button[data-active="true"] {
    background-color: var(--dark);
}

.popular_events_nav_button_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popular_prematch_markets {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
    background-color: var(--light);
    border: 2px solid var(--dark);
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.popular_prematch_markets_nav::-webkit-scrollbar {
    display: none;
}

.popular_prematch_markets_nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
}

.popular_prematch_markets_nav_link {
    all: unset;
    min-width: 30px;
    width: 30px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: var(--light);
    border: 2px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

    .popular_prematch_markets_nav_link[data-active="true"] {
        border-color: var(--dark);
    }

    .popular_prematch_markets_nav_link:focus,
    .popular_prematch_markets_nav_link:active {
        border-color: var(--dark);
        transition: border-color 0.2s ease-out;
    }

    .popular_prematch_markets_nav_link img {
        width: 100%;
        max-width: 28px;
        height: auto;
        display: block;
    }

.popular_sport_market_events {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.popular_golf_market_events {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background-color: var(--dark);
    border-radius: 8px;
}

.popular_golf_market_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular_golf_market_actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular_golf_market_description {
    width: 100%;
    max-width: 380px;
    margin: auto;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    color: var(--light);
}

.popular_golf_market_link {
    width: 100%;
    max-width: 300px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    color: var(--dark);
    background-color: var(--primary-green);
    border: 2px solid transparent;
    border-radius: 4px;
}

    .popular_golf_market_link:focus,
    .popular_golf_market_link:active {
        background-color: var(--light);
        border-color: var(--primary-green);
        transition: 0.2s ease-out;
    }

    .popular_golf_mark_image {
        width: 100%;
        height: 200px;
        display: block;
        border-radius: 8px;
    }

.popular_live_markets {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
    background-color: var(--light);
    border: 2px solid var(--dark);
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#liveBettingIframe {
    width: 100%;
    min-height: 640px;
    border: none;
}

@media only screen and (min-width: 785px) {
    .popular_golf_market_container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 32px;
    }

    .popular_golf_market_description {
        width: initial;
        max-width: initial;
        font-size: 18px;
        line-height: 28px;
        text-align: left;
    }

    .popular_golf_market_link {
        margin: initial;
    }
}

@media only screen and (min-width: 1200px) {
    .popular_events_nav_button {
        width: 192px;
        height: 36px;
        justify-content: space-between;
    }

        .popular_events_nav_button:hover {
            background-color: var(--dark);
            transition: 0.2s ease-in-out;
        }

        .popular_events_nav_button:hover .popular_events_nav_button_text {
            color: var(--light);
            transition: 0.2s ease-in-out;
        }

    .popular_prematch_markets_nav_link:hover {
        border-color: var(--dark);
        transition: 0.2s ease-in-out;
    }

    .popular_golf_market_link:hover {
        background-color: var(--light);
        border-color: var(--primary-green);
        transition: 0.2s ease-in-out;
    }
}