/*
 * Site-specific layout repairs.
 *
 * This file is intentionally loaded after the Plaza control-panel CSS so
 * restoring theme settings cannot reintroduce the layout problems below.
 */

:root {
    --boxing-news-red: #ec3642;
    --boxing-news-red-dark: #c92331;
    --boxing-news-text: #323232;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body,
.wrapper {
    min-height: 100vh;
}

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

.wrapper > footer {
    margin-top: auto;
}

/* Header and main navigation */
.col-hoz .horizontal-menu .ul-top-items {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0;
}

.col-hoz .horizontal-menu .ul-top-items > li {
    float: none !important;
    flex: 0 0 auto;
}

.col-hoz .horizontal-menu .ul-top-items > li > .a-top-link {
    display: flex !important;
    align-items: center;
    min-height: 4.8rem;
    padding: 0 2rem !important;
    color: #fff !important;
    background: var(--boxing-news-red) !important;
    font-size: 1.4rem !important;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.col-hoz .horizontal-menu .ul-top-items > li:hover > .a-top-link,
.col-hoz .horizontal-menu .ul-top-items > li.active > .a-top-link,
.col-hoz .horizontal-menu .ul-top-items > li:hover > .a-top-link i {
    color: #fff !important;
    background: var(--boxing-news-red-dark) !important;
}

/* Keep the featured-products slider inside its six-column home-page area. */
.common-home .products-container,
.common-home .products-container .pt-content,
.common-home .products-container .swiper-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.common-home .products-container .swiper-viewport {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow: hidden;
}

.common-home .products-container .swiper-slide {
    height: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

.common-home .products-container .product-item .image img {
    display: block;
    width: 100%;
    height: auto;
}

.common-home .products-container .product-item .caption h4 {
    margin-bottom: 0.8rem;
    overflow-wrap: anywhere;
}

.common-home .main-row .sub-col > .pt-block,
.common-home .main-row .sub-col > .banner-container {
    max-width: 100%;
}

.common-home .main-row .sub-col img {
    height: auto;
}

/* Account pages */
#account-account,
#account-download {
    padding-bottom: 6rem;
}

#account-account > .row,
#account-download > .row {
    margin-top: 2.5rem;
}

#account-download .table-responsive {
    margin-bottom: 2rem;
    border: 0;
}

#account-download .table > thead > tr > td,
#account-download .table > tbody > tr > td {
    padding: 1rem;
    vertical-align: middle;
}

#account-download .download-action {
    width: 1%;
    text-align: center;
    white-space: nowrap;
}

#account-download .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-width: 10.5rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--boxing-news-red) !important;
    border-radius: 0.3rem;
    color: #fff !important;
    background: var(--boxing-news-red) !important;
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2rem;
    text-transform: none;
}

#account-download .btn-download:hover,
#account-download .btn-download:focus {
    border-color: var(--boxing-news-red-dark) !important;
    color: #fff !important;
    background: var(--boxing-news-red-dark) !important;
}

#account-download .btn-download .fa {
    color: inherit;
    font-size: 1.4rem;
}

@media (max-width: 1199px) {
    .common-home .products-container .block-title {
        margin-top: 6rem;
    }
}

@media (max-width: 991px) {
    .common-home .main-row .sub-col {
        margin-bottom: 3rem;
    }

    .common-home .products-container .block-title {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .wrapper {
        display: block;
        min-height: 0;
    }

    .common-home .products-container .swiper-slide {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    #account-account,
    #account-download {
        padding-bottom: 3rem;
    }

    #account-download > .row {
        margin-top: 1.5rem;
    }

    #account-download .table-responsive {
        border: 1px solid #ddd;
    }

    #account-download .btn-download {
        min-width: 4rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    #account-download .btn-download span {
        display: none;
    }
}
