* {
    --black: #000;
    --white: #FFF;
    --highlight: #E9E9E9;
    --american-silver: #d0d0d0;
    --cultured: #EDECEC;
    --cta: #276330;
    --lightgreen: rgba(170, 221, 170, .7);
    --ultralightgreen: rgba(39, 99, 48, .15);
}

.oddsTable, .oddsTable * {
    box-sizing: border-box;
}

.jsShowMore {
    cursor: pointer;
}

.matchesTable {
    color: var(--black);
    --font-size-xl: .75rem;
    --font-size-m: .65rem;
    --font-size-s: .55rem;
    container: matchesTable / inline-size;
}

.matchesTable__header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .25rem;
    margin-bottom: .25rem;
    font-size: var(--font-size-xl);
}

.matchesTable__nav.--select {
    background-color: var(--black);
    border-radius: 4px;
    color: var(--white);
    display: none;
    padding: .75rem .5rem;
    outline: 0;
    border: 0;
    cursor: pointer;
}

.matchesTable__navLink {
    display: flex;
    justify-content: center;
    align-items: center;
    border: thin solid rgba(0,0,0,.25);
    border-radius: 4px;
    text-decoration: none;
    padding: .5rem 1rem;
    outline: 0;
    box-shadow: unset;
}

.matchesTable__navLink:hover,
.matchesTable__navLink.--active {
    background-color: var(--black);
    color: var(--white);
    transition: background-color .3s;
}

.matchesTable__eventMarkets {
    display: none;
    gap: .5rem;
}

.matchesTable__list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.matchesTable__event {
    padding: .25rem .625rem;
    border-radius: 4px;
    border: thin solid #f2f2f2;
}

.matchesTable__list .matchesTable__event {
    background-color: var(--cultured);
}

.matchesTable__eventTeams {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: bold;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-xl);
    line-height: 1;
    margin: 0;
    padding-right: .5rem;
}

.matchesTable__eventTeamsList {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}

.matchesTable__eventTime {
    display: flex;
    align-items: center;
    flex: 0 0 45px;
    font-size: var(--font-size-xl);
    opacity: .7;
    text-align: center;
    padding-right: 10px;
}

.matchesTable__eventHeader {
    display: grid;
    grid-template-columns: 0.175fr 1fr 1fr;
    /*display: flex;*/
    width: 100%;
    align-items: stretch;
    justify-content: space-between;
}


.matchesTable__highlight {
    position: relative;
    color: var(--black);
    font-size: var(--font-size-xl);
    font-weight: bold;
    padding: .15rem .25rem;
    border-radius: 4px;
    width: 100%;
    max-width: 35px;
    flex: 1 0 35px;
    border: thin solid #d5d5d5;
    text-align: center;
    line-height: 1;
    transition: opacity .1s;
    grid-area: b;
    margin: 0 auto;
}

.matchesTable__list:not(.--active),
.matchesTable__eventGroup:not(.--opened) .matchesTable__eventGroupContent {
    display: none;
}

.matchesTable__eventGroupContent {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.matchesTable__showMore {
    display: flex;
    align-items: center;
    border: thin solid var(--black);
    font-size: var(--font-size-xl);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 1rem;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: .25;
    transition: opacity .3s, filter .3s, background-color .3s, border-color .3s;
    user-select: none;
    width: 1.5rem;
    height: 1.5rem;
    grid-area: d;
    justify-self: flex-end;
    align-self: center;
}

.matchesTable__showMore:hover,
.matchesTable__event.--opened .matchesTable__showMore,
.matchesTable__eventGroup .matchesTable__eventGroupHeader:hover .matchesTable__showMore {
    background-color: var(--white);
    border-color: var(--white);
    filter: invert(1);
    opacity: .85;
}

.matchesTable__event.--opened .matchesTable__showMore {
/*.matchesTable__eventGroup.--opened .matchesTable__eventGroupHeader .matchesTable__showMore {*/
    transform: scaleY(-1);
}

.matchesTable__eventGroup .matchesTable__eventGroupHeader .matchesTable__showMore {
    /*background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-toggle-left'%3E%3Crect x='1' y='5' width='22' height='14' rx='7' ry='7'%3E%3C/rect%3E%3Ccircle cx='8' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");*/
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
    border: 0;
}

.matchesTable__eventGroup .matchesTable__eventGroupHeader:hover .matchesTable__showMore {
    opacity: 1;
}
.matchesTable__eventGroup.--opened .matchesTable__eventGroupHeader .matchesTable__showMore {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.matchesTable__market {
    display: flex;
    align-items: center;
    font-size: var(--font-size-xl);
}

.matchesTable__market:not(.--header) {
    border-top: thin solid rgba(0,0,0, .025);
}

.matchesTable__market.--header {
    border-bottom: thin solid rgba(0,0,0, .05);
    font-size: var(--font-size-m);
    font-weight: bold;
}
.matchesTable__market.--header .matchesTable__marketTitle,
.matchesTable__event.--opened .matchesTable__eventMarkets {
    display: flex;
    flex-direction: column;
}

.matchesTable__market.--header .matchesTable__marketTitle .matchesTable__marketTitleText.--name {
    font-weight: 400;
}

.matchesTable__market.--header .matchesTable__marketOutcomes {
    align-items: center;
}

.matchesTable__marketTitle {
    display: flex;
    flex: 0 0 60%;
}

.matchesTable__marketOutcomes {
    display: flex;
    gap: .5rem;
    flex: 1 1 auto;
}

.matchesTable__marketOutcomeItem {
    width: 100%;
}

.matchesTable__marketOutcomeItem .matchesTable__highlight {
    display: block;
    opacity: 1;
    width: 100%;
    max-width: unset;
    padding: .35rem .25rem;
}

.matchesTable__marketOutcomeItem .matchesTable__highlight.--highlight {
    background-color: var(--highlight);
}

.matchesTable__marketBookmaker {
    width: 100px;
    height: 27px;
    padding: 5px;
    border-radius: 4px;
    object-fit: contain;
    background-color: var(--bookmaker-color);
}

.matchesTable__marketOutcomeItem .matchesTable__highlight.--highlight::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2360a832' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m23 6-9.5 9.5-5-5L1 18'/%3E%3Cpath d='M17 6h6v6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
}

.matchesTable__market.--header .matchesTable__marketOutcomeItem {
    text-align: center;
}

.matchesTable__event.--opened .matchesTable__eventHeader {
    border-bottom: thin solid rgba(0,0,0, .05);
    margin-bottom: .5rem;
    padding-bottom: .25rem;
}

.matchesTable__footer, .matchesTable__partner {
    font-size: var(--font-size-xl);
    display: flex;
    text-align: center;
    opacity: 1;
    transition: opacity .3s;
}


.matchesTable__footer {
    flex-direction: column;
    opacity: 1;
}

.matchesTable__legal {
    opacity: 1;
    margin-top: .5rem;
    transition: opacity .3s;
    text-align: center;
}

.matchesTable__partner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: var(--font-size-s);
    padding: .5rem;
}

.matchesTable__footer:hover .matchesTable__legal, .matchesTable__partner:hover {
    opacity: 1;
}

.matchesTable__partnerImgWrapper {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.matchesTable__partnerImgWrapper .matchesTable__partnerImg {
    width: 70px;
    height:auto;
}

.matchesTable__partnerImgWrapper .matchesTable__partnerText {
    font-size: var(--font-size-s);
}

.matchesTable__legal {
    width: 100%;
}

.matchesTable__contentHeader {
    display: flex;
    justify-content: flex-end;
    opacity: .5;
    font-size: var(--font-size-xl);
    padding: 4px;
}

.matchesTable__contentHeaderText {
    text-align: right;
}

.matchesTable__cta {
    /*display: flex;*/
    /*flex-direction: column;*/
    width: 100%;
    display: grid;
    /*grid-template-areas:*/
    /*        "a a a"*/
    /*        "b c d";*/
    grid-template-areas:
            "a c d"
            "b c d";
    grid-template-columns: 4fr 1.25fr 36px;
}

.matchesTable__ctaActions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.promoLink {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.promoLink:hover {
    text-decoration: underline;
}

.matchesTable__bet {
    font-size: var(--font-size-xl);
    padding: .35rem .25rem;
    border: thin solid var(--cta);
    background-color: var(--cta);
    color: var(--white);
    border-radius: 4px;
    transition: background-color .3s, color .3s, border-color .3s;
    text-decoration: none;
    line-height: 1;
    grid-area: c;
    align-self: center;
    margin: auto;
}

.matchesTable__ctaTitle {
    grid-area: a;
    font-size: var(--font-size-m);
    text-align: center;
}

.matchesTable__bet:hover {
    background-color: var(--black);
    border-color: var(--black);
    color: var(--white);
    text-decoration: none;
}

.externalLink::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.matchesTable__nav.--pills {
    width: 100%;
    display: flex;
    gap: .5rem;
}

.matchesTable__eventGroupHeader {
    position: relative;
    display: grid;
    grid-template-columns: 1.175fr 1fr;
    /*display: flex;*/
    align-items: center;
    padding: .5rem .625rem;
    background-color: var(--highlight);
    border: thin solid var(--highlight);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .3s;
    user-select: none;
}

.matchesTable__eventGroupInfo {
    display: grid;
    grid-template-areas: "a a d";
    grid-template-columns: 4fr 1.25fr 36px;
    font-size: var(--font-size-m);
    line-height: 1;
}

.matchesTable__eventGroupInfo, .matchesTable__eventGroupTitle {
    pointer-events: none;
}

.matchesTable__eventGroup:not(.--opened) .matchesTable__eventGroupInfo {
    grid-template-areas: "a d";
    grid-template-columns: 5.25fr 36px;
}

.matchesTable__eventGroup.--opened .matchesTable__eventGroupTotal,
.matchesTable__eventGroup:not(.--opened) .matchesTable__eventGroupMarketType {
    display: none;
}

.matchesTable__eventGroup.--opened .matchesTable__eventGroupMarketType,
.matchesTable__eventGroup:not(.--opened) .matchesTable__eventGroupTotal:not(.--active) {
    display: block;
}

.matchesTable__eventGroupMarketType {
    justify-self: center;
    align-self: center;
}

.matchesTable__eventGroupTotal {
    text-align: right;
    justify-self: flex-end;
    align-self: center;
}

.matchesTable__eventGroupHeader:hover {
    background-color: var(--american-silver);
}

.matchesTable__eventGroupDate {
    margin: 0 0 0 .25rem;
    font-size: var(--font-size-m);
    font-weight: normal;
    line-height: 1;
}

.matchesTable__eventGroupHeader:hover .matchesTable__eventGroupDate {
    opacity: 1;
}

.matchesTable__eventGroup.--opened .matchesTable__eventGroupHeader {
    border-radius: 4px 4px 0 0;
}

.matchesTable__eventGroup.--opened .matchesTable__event:first-child {
    border-radius: 0 0 4px 4px;
}

.matchesTable__eventGroupTitle {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-weight: bold;
    font-size: var(--font-size-xl);
}

.matchesTable__eventGroupTitleText {
    line-height: 1.25;
}

.matchesTable__bonuses {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    justify-content: center;
    width: 100%;
}

.matchesTable__bonusItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .75rem;
    border-radius: 4px;
    position: relative;
    gap: .5rem;
}

.matchesTable__bonusLink {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
}

.matchesTable__bonusItem, .matchesTable__bonusItem a {
    background-color: var(--header-color, #000);
    color: var(--text-color, #fff);
}

.matchesTable__bonusItem .matchesTable__bonusItemText {
    text-align: left;
}

.matchesTable__bonusItem .matchesTable__bonusItemCta {
    padding: .25rem;
    border-radius: 4px;
    text-decoration: none;
    background-color: var(--btn-bg-color, #FFF);
    color: var(--btn-text-color, #000);
    font-weight: bold;
    white-space: nowrap;
}

@container matchesTable (width <= 468px) {
    .matchesTable__eventTeams
    {
        font-size: var(--font-size-xl);
    }
    .matchesTable .matchesTable__eventGroupTitle {
        align-items: flex-start;
        gap: 0;
    }
    .matchesTable .matchesTable__eventGroupTitle:has(.matchesTable__eventGroupIcon) {
        padding-left: 1.35rem;
    }
    .matchesTable .matchesTable__eventGroupIcon {
        position: absolute;
        left: .625rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .matchesTable__eventGroupDate {
        margin: 0 0 .15rem 0;
    }

    .matchesTable__eventTime,
    .matchesTable__footer,
    .matchesTable__eventMarkets {
        font-size: var(--font-size-m);
    }
    .matchesTable__nav.--pills,
    .matchesTable .matchesTable__eventTime br {
        display: none;
    }
    .matchesTable__nav.--select {
        display: flex;
    }

    .matchesTable__eventGroupTitle {
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-start;
    }

    .matchesTable__eventHeader {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
                "a c"
                "b c";
    }
    .matchesTable__eventTime {
        grid-area: a;
        align-items: flex-start;
    }
    .matchesTable__eventTeams {
        grid-area: b;
    }
    .matchesTable__cta {
        grid-area: c;
    }
    .matchesTable__cta .matchesTable__highlight {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 1rem 0 auto;
        align-self: flex-start;
        padding: .35rem .25rem;
    }
    .matchesTable__bet,
    .matchesTable__showMore {
        align-self: flex-start;
        margin: 0;
    }
    .matchesTable__cta {
        grid-template-areas:
            "a a a"
            "b c d";
    }
    .matchesTable__ctaTitle {
        overflow: hidden;
        text-wrap: nowrap;
        text-overflow: ellipsis;
        text-align: right;
    }
    .matchesTable__eventGroupMarketType {
        justify-self: flex-end;
        text-align: right;
    }
    .matchesTable__eventGroupInfo {
        grid-template-areas: "a d";
        grid-template-columns: 5fr 1.5rem;
    }
    .matchesTable__eventGroup:not(.--opened) .matchesTable__eventGroupInfo {
        grid-template-columns: 5.25fr 1.5rem;
    }
    .matchesTable__eventHeader,
    .matchesTable__cta {
        grid-template-rows: 1.15rem auto;
    }
    .matchesTable__marketOutcomeItem .matchesTable__highlight.--highlight::after {
        content: unset;
    }
    .matchesTable__marketOutcomeItem .matchesTable__highlight.--highlight {
        background-color: var(--lightgreen);
        border-color: var(--ultralightgreen);
    }
    .matchesTable__eventGroupHeader .matchesTable__showMore {
        width: 1rem;
        height: 1rem;
        align-self: center;
    }
    .matchesTable__eventGroupTotal, .matchesTable__eventGroupMarketType {
        line-height: 1.25;
    }

}

@container matchesTable (width <= 375px) {
    .matchesTable__cta {
        grid-template-columns: 4fr 1.25fr 30px;
    }
    .matchesTable__bet,
    .matchesTable__highlight {
        font-size: var(--font-size-m);
    }

    .matchesTable__cta .matchesTable__highlight {
        margin: 0 .35rem 0 auto;
    }
    .matchesTable__marketTitle {
        flex: 0 0 50%;
    }
    .matchesTable__marketBookmaker {
        width: 95px;
        padding: 3px;
    }
}