@media only screen and (min-width: 1040px) {
    .content-wrapper {
        max-width: calc(100% - 27rem);
    }

    .content-wrapper.columns-3 {
        max-width: calc(100% - 27rem - 180px);
    }

    #root.expanded .content-wrapper.columns-3 {
        max-width: calc(100% - 50rem - 180px);
    }

    .casino-page .content-wrapper {
        max-width: 128rem;
        margin: 0 auto
    }

    .homepage .content {
        max-width: calc(100% - 180px)
    }

    .view-page-sports-select .content-wrapper {
        max-width: 100%
    }
}

@media only screen and (min-width: 1641px) {
    #root.expanded .content-right .home-highlights-block .match-markets-wrapper {
        order: 4;
        display: block;
        flex-basis: 100%;
        width: 100%;
        min-width: 100%
    }

    #root.expanded .content-right .home-highlights-block .match-market-wrapper .match-odd {
        border-left: unset
    }

    #root.expanded .content-right .home-highlights-block .match-market-wrapper .match-odd:last-child {
        border-right: unset
    }

    #root.expanded .content-right .home-highlights-block .sports-coupon.small .markets-header-wrapper {
        display: none
    }

    #root.expanded .content-right .home-highlights-block .sports-coupon.small .match-markets-wrapper .match-market .match-odd .odd .mobile-outcome {
        display: block !important;
        padding-right: 1rem;
        color: var(--c-text-b);
        margin-right: 0 !important
    }
}

@media only screen and (min-width: 1441px) and (max-width: 1640px) {
    #root.expanded .content-left, .content-right {
        display: block;
        max-width: 100%
    }

    #root.expanded .content-right {
        padding-left: 0;
        width: 100%
    }

    #root.expanded .content-inner > app-widget-host {
        flex-wrap: wrap
    }

    #root .content-right .home-highlights-block .match-markets-wrapper {
        order: 4;
        display: block;
        flex-basis: 100%;
        width: 100%;
        min-width: 100%
    }

    #root.expanded .content-right .home-highlights-block .match-markets-wrapper {
        order: 3;
        flex-basis: unset;
        min-width: 24rem;
        width: auto
    }

    #root.expanded .content-right .home-highlights-block app-breaks-events-item-links {
        order: 4
    }

    .content-right .home-highlights-block .sports-coupon.small .markets-header-wrapper {
        display: none
    }

    .content-right .home-highlights-block .match-market-wrapper .match-odd {
        border-left: unset
    }

    .content-right .home-highlights-block .match-market-wrapper .match-odd:last-child {
        border-right: unset
    }

    .content-right .home-highlights-block .sports-coupon.small .match-markets-wrapper .match-market .match-odd .odd .mobile-outcome {
        display: block !important;
        padding-right: 1rem;
        color: var(--c-text-b);
        margin-right: 0 !important
    }
}

@media only screen and (max-width: 1720px) {
    .sports-page .sports-coupon app-markets-switch-list ul li {
        flex: 0 0 10%;
    }
}

@media only screen and (max-width: 1410px) {
    body .content-right {
        display:none;
    }

    .content-left {
        max-width: unset;
    }
}

@media only screen and (max-width: 1190px) {
    .content-wrapper.columns-3, #root.expanded .content-wrapper.columns-3 {
        max-width: calc(100% - 27rem - 180px);
    }

    .sports-page .sports-coupon app-markets-switch-list ul li {
        flex: 0 0 12.5%;
    }

    .content-right .home-highlights-block app-breaks-events-item-links {
        order: 4
    }

    #root .content-right .home-highlights-block .match-markets-wrapper {
        order: 3
    }

    .content-left, .content-right {
        display: block;
        max-width: 100%
    }

    .content-right {
        padding-left: 0;
        width: 100%
    }

    .content-inner > app-widget-host {
        flex-wrap: wrap
    }

    body.expanded .body .right-sidebar {
        width: 27rem;
        min-width: 27rem;
        max-width: 27rem
    }

    .collapse-sidebar, .expand-sidebar {
        opacity: .2;
        pointer-events: none
    }

    .desktop .sports-page .custom-coupon .match-market.market-columns-long .match-market-wrapper {
        grid-template-columns: repeat(6, [col-start] 55px [col-end]);
    }

    .desktop .sports-page .custom-coupon .match-market.market-code-235 .match-market-wrapper, .desktop .sports-page .custom-coupon .match-market.market-code-201 .match-market-wrapper, .desktop .sports-page .custom-coupon .match-market.market-code-389 .match-market-wrapper {
        display: grid;
        grid-template-columns: repeat(3, [col-start] 100px [col-end])
    }
}

@media only screen and (max-width: 1299px) {
    .sports-page .sports-coupon app-markets-switch-list ul li {
        flex: 0 0 16.6666666%;
    }

    .league-select-page .nav-category-panel .nav-tournament-wrapper {
        flex: 0 0 50%;
        max-width: 50%
    }
}

@media only screen and (max-width: 1195px) {
    .desktop .sports-page .custom-coupon .match-market.market-columns-long .match-market-wrapper {
        grid-template-columns: repeat(4, [col-start] 55px [col-end]);
    }

    .desktop .sports-page .custom-coupon .match-market.market-code-235 .match-market-wrapper, .desktop .sports-page .custom-coupon .match-market.market-code-201 .match-market-wrapper, .desktop .sports-page .custom-coupon .match-market.market-code-389 .match-market-wrapper {
        display: grid;
        grid-template-columns: repeat(2, [col-start] 100px [col-end])
    }
}

@media only screen and (max-width: 1039px) {
    .view-page-sports-select app-block.content {
        flex: 1 !important
    }

    .sports-filter > li.selected .icon-sport:after {
        display: none
    }

    .mobile .match-page .match-market .match-odd, .match-market div .market-special {
        height: auto
    }

    .overlay {
        background-color: var(--c-primary) !Important
    }

    .match-market div .market-special {
        flex: 1
    }

    .home-highlights-block .match-market .match-odd, .home-highlights-block .match-market .match-market-wrapper {
        height: 100% !important
    }

    body .home-live-block .mobile-outcome {
        display: none !important
    }

    .sidebar-live-sport-block .events-tournament-header {
        width: 100%
    }

    .homepage .match-market div .match-odd {
        min-height: 100%;
        height: auto
    }

    .homepage .match-market .match-market-wrapper {
        height: 100%
    }

    .home-highlights-block .match-markets-wrapper {
        max-width: 50%
    }

    .home-highlights-block app-breaks-events-item-links {
        display: none
    }

    .homepage .match-market.market-1 {
        display: block;
        padding-left: 3px
    }

    .home-live-block .odds-selection-default {
        justify-content: center !important
    }

    .market-content.over-3 .match-odd {
        flex: 0 0 50%
    }

    .league-select-page .nav-category-panel .nav-tournament-wrapper {
        flex: 0 0 50%;
        max-width: 100%
    }

    body .body .content app-widget-host .league-select-page {
        width: 100%
    }

    .nav-sport-wrapper .nav-sport .nav-sport-counter {
        display: block
    }

    .content > app-widget-host {
        display: block !important
    }

    .content-left {
        min-width: 100%
    }

    .match-schedule, .match-time {
        margin: 0 !important
    }

    body .sports-coupon.small .markets-header-wrapper {
        display: block
    }

    .market-header {
        padding-right: 0
    }

    .match-schedule, .home-highlights-block .match-time {
        display: block !important
    }

    body .sports-coupon.small .match-markets-wrapper .match-market .match-odd .odd .mobile-outcome, .home-highlights-block .match-team-separator, .match-score-separator {
        display: none !important
    }

    .match-team-separator {
        display: none !important
    }

    .match-score{
        display: block;
        position: absolute;
        right: 0.6rem;
        top: 1rem
    }
    
    body .sports-coupon.small .match-markets-wrapper .match-market .match-odd .odd, .match-progress {
        padding: 0
    }

    body .events-sport-wrapper .events-item-wrapper .item-info-wrapper > .match-live-info {
        justify-content: flex-start
    }

    .home-live-block .odds-selection-default {
        padding-left: 0
    }

    .match-score-home, .match-score-away {
        display: block;
        font-size: 1.1rem
    }

    body .events-sport-wrapper .events-item-wrapper .item-info-wrapper {
        width: 50%;
        padding: 1rem;
        flex-wrap: wrap;
        position: relative;
        max-width: 50%
    }

    .match-info .match-teams {
        padding-right: 10px
    }

    .match-teams {
        text-overflow: unset;
        overflow: unset
    }

    body .sports-coupon.small .match-links {
        order: 2;
        width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body .sports-coupon.small .match-links .match-more-markets {
        font-size: 1.1rem;
        justify-content: center;
        order: 3
    }

    body .sports-coupon.small .match-links .match-live-tracker {
        display: none
    }

    body .sports-coupon.small .match-links .match-statistics {
        margin-left: unset;
    }

    .match-info {
        flex-wrap: wrap;
        max-width: 100%;
        width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        display: flex;
    }

    .match-schedule {
        order: 2;
        width: 100%;
        max-width: 100%
    }

    .match-time {
        display: block !important;
        margin-left: 1rem;
        font-size: 1.1rem
    }

    .match-teams {
        display: block !important;
        padding: 0;
        width: 100%;
        min-width: 100%
    }

    .match-markets-wrapper {
        max-width: 50%
    }

    .home-live-block .match-teams > .match-team-separator {
        display: none !important
    }

    .match-away-team, .match-home-team {
        width: 100%;
        overflow: hidden;
        font-size: 1.1rem;
        font-weight: normal;
        text-overflow: ellipsis
    }

    .home-live-block .match-teams .match-home-team, .single-live-match .match-teams .match-away-team {
        display: block !important;
    }

    body .sports-coupon.small .match-markets-wrapper {
        width: 50%;
        max-width: 50%
    }

    body .sports-coupon.small .match-markets-wrapper .match-market .match-odd {
        height: 100% !important
    }

    body .sports-coupon.small .match-markets-wrapper .match-market .match-odd .odd {
        justify-content: center;
        align-items: center
    }

    body .sports-coupon.small .events-item-wrapper {
        position: relative
    }

    .home-highlights-block .match-more-markets {
        position: absolute;
        bottom: 0.6rem;
        left: 4rem;
        font-size: 1.1rem;
    }

    .home-highlights-block .match-links .match-statistics {
        margin: 0 !important
    }

    .home-highlights-block app-market-headings-container {
        position: relative;
        width: calc(50% - 30px);
    }
    .sports-page .event-date-break-wrapper-new, .sports-page .events-tournament-header {
        flex: 0 0 calc(50% + 17px);
   
    }

    .home-highlights-block .markets-header-wrapper .market-header {
        flex: 1;
        justify-content: center;
        margin-right: 0;
        width: 100%;
        margin-left: 0
    }

    .home-highlights-block .events-tournament-header {
        display: flex;
        flex-wrap: wrap;
        width: 50%;
        min-width: 50%
    }

    .events-category-tournament-names {
        overflow: hidden;
        display: block
    }

    .events-category-tournament-names * {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap
    }

    .home-highlights-block .events-tournament-header .events-category-tournament-names .events-tournament-name {
        width: 100%
    }

    .home-highlights-block .tournament-header-wrapper {
        display: flex
    }

    .home-live-block .events-item-wrapper {
        flex-direction: row
    }

    .content-wrapper {
        padding-bottom: 0
    }

    .content-right {
        padding-left: 0
    }

    .item-info-wrapper .match-live-info .match-score {
        display: block
    }

    .home-live-block app-market-headings-container {
        display: flex !important;
        width: 50%;
        height: 100%;
        background-color: var(--c-primary-j)
    }

    .markets-header-wrapper {
        max-width: 100%
    }

    .markets-header-wrapper .market-header {
        max-width: 100%;
        padding: 0;
        margin: 0;
        margin-left: 0
    }

    .markets-header-wrapper .market-type-selection {
        margin-left: 0
    }

    .events-tournament-header {
        width: 50%;
        font-size: 1.1rem
    }

    #root .mobile .internal-user-page.helper-page .header {
        height: 4.6rem
    }

    .mobile.view-page-content .internal-user-page.helper-page .help-sec {
        flex: 0 0 33.333333%
    }
}

@media only screen and (max-width: 780px) {
    .league-select-page .nav-category-panel .nav-tournament-wrapper {
        flex: 0 0 100%;
        max-width: 100%
    }

    .mobile.view-page-content .internal-user-page.helper-page .help-sec {
        flex: 0 0 50%
    }
}

@media only screen and (max-width: 587px) {
    .mobile .history-bet-wrapper .history-actions-wrapper {
        flex-wrap: wrap
    }

    .internal-user-page.helper-page .help-sec {
        flex: 0 0 33.333333%
    }

    .mobile.view-page-content .internal-user-page.helper-page .help-sec {
        flex: 0 0 100%
    }
}

@media only screen and (max-width: 500px) {
    #root .history-bet-wrapper .history-system-wrapper {
        justify-content:space-between;
        flex-direction: column;
        border-bottom: 1px solid var(--c-light-grey);
    }

    #root .history-bet-wrapper .history-system-wrapper .history-system-type, #root .history-bet-wrapper .history-system-wrapper .history-system-stake, #root .history-bet-wrapper .history-system-wrapper .history-system-label, #root .history-bet-wrapper .history-system-wrapper .history-system-lines, #root .history-bet-wrapper.expanded .history-system-wrapper .history-system-odds {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 0;
        font-weight: normal;
        color: var(--c-background);
        padding: unset;
        line-height: 2.2rem;
        width: unset
    }

    #root .history-bet-wrapper .history-system-wrapper:not(:first-child) div span:first-child {
        display: flex;
    }

    #root .history-bet-wrapper .history-system-wrapper.history-bet-header {
        display: none;
    }

    #root .history-bet-wrapper .history-system-wrapper .history-system-lines .history-system-lines-value {
        margin: unset
    }

    #root .history-bet-wrapper .history-system-wrapper.accumulator .history-system-lines .history-system-lines-value::after {
        display: NONE
    }
}

@media only screen and (max-width: 1000px) {
    body app-search .ui-autocomplete-panel .ui-autocomplete-items .search-result.search-match-wrapper {
        flex-direction:column;
    }

    app-search .ui-autocomplete-panel .search-result .search-match-type {
        order: -1;
        margin-left: unset;
        background-color: var(--c-primary-)
    }

    app-search .ui-autocomplete-panel .search-result .search-match-tournament-category {
        flex-direction: column
    }

    app-search .ui-autocomplete-panel .search-result .search-match-data {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        font-size: 1.2rem;
        padding: 2px 5px;
    }

    app-search .ui-autocomplete-panel .search-result .search-match-info {
        flex-direction: row;
        width: 30%;
        flex-wrap: wrap;
        order: 2;
        justify-content: flex-end;
        padding: 0px 5px
    }

    app-search .ui-autocomplete-panel .search-result .search-match-tournament {
        width: 100%;
        /* border-bottom:1px solid var(--c-primary); */
        font-size: 1.2rem;
    }

    app-search .ui-autocomplete-panel .search-result .search-match-time, app-search .ui-autocomplete-panel .search-result .search-match-score {
        white-space: nowrap;
        text-align: right;
        padding-left: 5px;
    }

    app-search .ui-autocomplete-panel .search-result .search-match-tournament-category .search-match-category {
        font-size: 1rem;
    }

    body .ui-autocomplete-panel .ui-autocomplete-items .ui-autocomplete-list-item {
        padding: 5px
    }

    app-search .ui-autocomplete-panel .search-result .search-match-name {
        width: 70%;
    }

    .search-result .search-match-time {
        padding-left: 5px
    }
}

@media screen and (max-width: 350px) {
    .mobile .history-bet-wrapper .history-actions-wrapper {
        flex-wrap:wrap;
        flex-direction: column;
    }
}
