/*===================================================
    Tyre type-overview page (SBEPL - OTR Tyres)
    (shared inner-hero styles live in common.css)
===================================================*/

/*===inner hero - find-a-part button on the right.
     The row keeps common.css's flex-start so the crumb and heading sit
     to the top, the way every other inner page reads; only the button
     drops to the bottom of the row===*/
.innerHeroSec{
    .breadcrumbList{
        flex-wrap: wrap;
        white-space: normal;
        max-width: 190px;
    }
    .innerHeroCont{
        flex: 1;
        .innerHeroSub{
            max-width: 640px;
        }
    }
    .heroBtnWrap{
        flex-shrink: 0;
        align-self: flex-end;
        .btnOne.blueBtn{
            padding: 13px 30px;
            font-size: 15px;
        }
    }
}
.tagHolder {
    display: inline-block;
    max-width: 100%;
}
.innerHeroSec {
    .innerHeroCont {
        .innerHeroSub {
            max-width: 100%;
        }
    }
}
@media (max-width: 991px){
    .innerHeroSec{
        .heroBtnWrap{
            margin-top: 10px;
            /*===the row stacks here, so flex-end would push the button
                 to the right edge instead of the bottom===*/
            align-self: auto;
        }
    }
}

/*===end-to-end tyre solutions - light panel with brand cards===*/
.tyreSolSec{
    .tyreSolPanel{
        background-color: #e8eef8;
    }
    .headingWrap{
        align-items: center;
        .headingLeft{
            .tagHolder{
                max-width: 100%;
            }
        }
        .headingRight{
            p{
                color: #1d2a36;
                font-size: 15px;
                line-height: 1.7;
                letter-spacing: 0.2px;
                margin: 0;
            }
        }
    }
    .tyreBrandGrid{
        .row{
            row-gap: 24px;
        }
        .tyreBrandCard{
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 100%;
            padding: 22px 18px;
            text-align: center;
            background-color: #fff;
            border: 1px solid #e3eaf2;
            border-radius: 16px;
            transition: transform .4s ease, box-shadow .4s ease;
            &:hover,
            &.is-active{
                transform: translateY(-5px);
                box-shadow: 0 16px 34px rgb(11 51 85 / 12%);
            }
            .tyreBrandLogo{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 80px;
                margin-bottom: 18px;
                padding: 14px 18px;
                border: 1px solid #e3eaf2;
                border-radius: 12px;
                img{
                    max-width: 100%;
                    max-height: 100%;
                    object-fit: contain;
                }
            }
            .tyreBrandName{
                display: block;
                font-size: 17px;
                font-weight: 700;
                color: var(--blue);
                margin-bottom: 10px;
            }
            p{
                margin: 0;
                font-size: 13px;
                line-height: 1.6;
                letter-spacing: 0.2px;
                color: #1d2a36;
            }
            .btnOne.blueBtn{
                margin-top: 16px;
                padding: 10px 24px;
                font-size: 14px;
            }
        }
    }
    .tyreSolNote{
        margin: 50px auto 0;
        max-width: 640px;
        color: #1d2a36;
        font-size: 15px;
        letter-spacing: 0.2px;
        strong{
            font-weight: 700;
        }
    }
}

/*===application-focused approach - blue panel with icon cards===*/
.tyreAppSec{
    .tyreAppPanel{
        background-color: #1667a6;
    }
    .headingWrap{
        .tagHolder{
            max-width: 100%;
        }
    }
    .tyreAppSub{
        max-width: 760px;
        margin: 26px auto 50px;
        color: rgb(255 255 255 / 88%);
        font-size: 15px;
        letter-spacing: 0.2px;
    }
    .tyreAppGrid{
        .row{
            row-gap: 26px;
        }
        .appApproachCard{
            height: 100%;
            padding: 28px 26px;
            border: 1px solid rgb(255 255 255 / 35%);
            border-radius: 18px;
            transition: all .4s ease;
            .appApproachIcon{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 54px;
                height: 54px;
                margin-bottom: 30px;
                background-color: #fff;
                border-radius: 12px;
                transition: background .4s ease;
                i,
                svg{
                    font-size: 22px;
                    width: 1em;
                    height: auto;
                    color: var(--blue);
                    fill: currentColor;
                }
            }
            .appApproachTitle{
                display: block;
                font-size: 19px;
                font-weight: 700;
                color: #fff;
                margin-bottom: 12px;
                transition: color .4s ease;
            }
            p{
                margin: 0;
                font-size: 14px;
                line-height: 1.65;
                letter-spacing: 0.2px;
                color: rgb(255 255 255 / 85%);
                transition: color .4s ease;
            }
            &.is-active,
            &:hover{
                background-color: #fff;
                border-color: #fff;
                box-shadow: 0 18px 40px rgb(6 32 56 / 30%);
                .appApproachIcon{
                    background-color: var(--blue);
                    i,
                    svg{
                        color: #fff;
                    }
                }
                .appApproachTitle{
                    color: var(--blue);
                }
                p{
                    color: #1d2a36;
                }
            }
        }
    }
}

/*===tyre types - sidebar with sizes + brand tyre cards===*/
.tyreTypeSec{
    .tyreTypeRow{
        display: flex;
        gap: 50px;
        align-items: flex-start;
    }
    .typeTabs{
        position: sticky;
        top: 110px;
        flex-shrink: 0;
        width: 260px;
        .typeActive{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 18px;
            margin-bottom: 20px;
            background-color: #eef3f8;
            border-left: 3px solid var(--blue);
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            color: #1d2a36;
            i,
            svg{
                font-size: 13px;
                width: 1em;
                height: auto;
                color: #1d2a36;
                fill: currentColor;
            }
        }
        .sizeWrap{
            padding-bottom: 24px;
            border-bottom: 1px solid #dfe6ee;
            .sizeTitle{
                display: block;
                font-size: 15px;
                font-weight: 600;
                color: #1d2a36;
                margin-bottom: 14px;
            }
            .sizeList{
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin: 0;
                li{
                    padding: 7px 12px;
                    font-size: 12px;
                    letter-spacing: 0.2px;
                    color: #1d2a36;
                    background-color: #fff;
                    border: 1px solid #dfe6ee;
                    border-radius: 8px;
                    transition: all .3s ease;
                    &:hover{
                        border-color: var(--blue);
                        color: var(--blue);
                    }
                }
            }
        }
        .typeList{
            margin: 24px 0 0;
            li{
                button{
                    display: block;
                    width: 100%;
                    padding: 11px 4px;
                    text-align: left;
                    font-family: inherit;
                    font-size: 14px;
                    line-height: 1.4;
                    letter-spacing: 0.2px;
                    color: #6f7d8a;
                    background-color: transparent;
                    cursor: pointer;
                    transition: color .3s ease;
                    &:hover{
                        color: var(--blue);
                    }
                }
            }
        }
    }
    .tyreTypeContent{
        flex: 1;
        .typeOverviewCont{
            margin-bottom: 40px;
            .typeContH{
                font-size: 30px;
                font-weight: 700;
                margin-bottom: 16px;
            }
            p{
                margin: 0;
                color: #4b5a66;
                font-size: 14px;
                line-height: 1.7;
                letter-spacing: 0.2px;
            }
        }
        .tyreCardGrid{
            .row{
                row-gap: 26px;
            }
            .tyreCard{
                display: flex;
                flex-direction: column;
                height: 100%;
                padding: 24px 22px 0;
                background-color: #eef3f8;
                border: 1px solid #e3eaf2;
                border-radius: 18px;
                overflow: hidden;
                transition: transform .4s ease, box-shadow .4s ease;
                &:hover{
                    transform: translateY(-5px);
                    box-shadow: 0 16px 34px rgb(11 51 85 / 12%);
                    .tyreCardImg img{
                        transform: scale(1.05);
                    }
                }
                .tyreCardLogo{
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 110px;
                    height: 60px;
                    margin-bottom: 18px;
                    padding: 8px 12px;
                    background-color: #fff;
                    border-radius: 8px;
                    img{
                        max-width: 100%;
                        max-height: 100%;
                        object-fit: contain;
                    }
                }
                .tyreCardTitle{
                    display: block;
                    font-size: 20px;
                    font-weight: 700;
                    color: #1d2a36;
                    margin-bottom: 8px;
                }
                p{
                    margin: 0 0 16px;
                    font-size: 13px;
                    line-height: 1.6;
                    letter-spacing: 0.2px;
                    color: #4b5a66;
                }
                /*===catalogue sizes under the application line===*/
                .tyreCardSizes{
                    display: flex;
                    flex-wrap: wrap;
                    gap: 6px;
                    margin: -4px 0 18px;
                    .tyreCardSizesLabel{
                        flex-basis: 100%;
                        font-size: 12px;
                        font-weight: 600;
                        color: #1d2a36;
                    }
                    .tyreSize{
                        padding: 4px 9px;
                        font-size: 11.5px;
                        line-height: 1.3;
                        letter-spacing: 0.2px;
                        color: #1d2a36;
                        background-color: #fff;
                        border: 1px solid #dfe6ee;
                        border-radius: 6px;
                        &.is-more{
                            color: var(--blue);
                            border-style: dashed;
                            cursor: help;
                        }
                    }
                }
                .tyreCardImg{
                    margin-top: auto;
                    display: flex;
                    justify-content: center;
                    img{
                        max-width: 100%;
                        height: 190px;
                        object-fit: contain;
                        transition: transform .5s ease;
                    }
                }
            }
        }
    }
}
@media (max-width: 1199px){
    .tyreTypeSec{
        .typeTabs{
            width: 230px;
        }
        .tyreTypeRow{
            gap: 30px;
        }
    }
}
@media (max-width: 991px){
    .tyreTypeSec{
        .tyreTypeRow{
            flex-direction: column;
        }
        .typeTabs{
            position: static;
            width: 100%;
            .typeList{
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                li{
                    button{
                        padding: 9px 16px;
                        border: 1px solid #dfe6ee;
                        border-radius: 30px;
                    }
                }
            }
        }
    }
}
@media (max-width: 767px){
    .tyreTypeSec{
        .tyreTypeContent{
            .typeOverviewCont .typeContH{
                font-size: 24px;
            }
        }
    }
}

/*===complete support - light panel with service cards & commitment===*/
.tyreSupportSec{
    .supportPanel{
        background-color: #e8eef8;
        overflow: hidden;
    }
    .supportHead{
        margin-bottom: 50px;
        .tagHolder{
            max-width: 100%;
            .SecH{
                max-width: 720px;
            }
        }
        .supportLede{
            max-width: 560px;
            margin: 26px 0 0;
            color: #1d2a36;
            font-size: 15px;
            line-height: 1.7;
            letter-spacing: 0.2px;
        }
        .supportImg{
            position: absolute;
            right: 0;
            top: -30px;
            width: 380px;
            img{
                width: 100%;
                height: auto;
            }
        }
    }
    .supportGrid{
        .row{
            row-gap: 24px;
        }
        .supportCard{
            height: 100%;
            padding: 28px 26px;
            background-color: #fff;
            border-radius: 16px;
            transition: transform .4s ease, box-shadow .4s ease;
            &:hover{
                transform: translateY(-5px);
                box-shadow: 0 16px 34px rgb(11 51 85 / 12%);
            }
            .supportTitle{
                display: block;
                font-size: 19px;
                font-weight: 700;
                color: var(--blue);
                margin-bottom: 12px;
            }
            p{
                margin: 0;
                font-size: 14px;
                line-height: 1.65;
                letter-spacing: 0.2px;
                color: #1d2a36;
            }
        }
    }
    .supportNote{
        margin: 30px 0 0;
        color: #1d2a36;
        font-size: 15px;
        letter-spacing: 0.2px;
    }
    .commitWrap{
        margin-top: 70px;
        .commitH{
            font-size: 38px;
            font-weight: 800;
            text-transform: uppercase;
            margin-bottom: 16px;
        }
        .commitSub{
            max-width: 640px;
            margin: 0 auto 40px;
            color: #1d2a36;
            font-size: 15px;
            line-height: 1.7;
            letter-spacing: 0.2px;
        }
        .commitList{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin: 0;
            li{
                display: flex;
                align-items: flex-start;
                gap: 12px;
                padding: 0 30px;
                text-align: left;
                &:not(:last-child){
                    border-right: 1px solid #cdd9e6;
                }
                i,
                svg{
                    flex-shrink: 0;
                    margin-top: 3px;
                    font-size: 17px;
                    width: 1em;
                    height: auto;
                    color: var(--blue);
                    fill: currentColor;
                }
                p{
                    margin: 0;
                    max-width: 240px;
                    font-size: 14px;
                    line-height: 1.5;
                    letter-spacing: 0.2px;
                    color: #1d2a36;
                }
            }
        }
    }
}
@media (max-width: 1199px){
    .tyreSupportSec{
        .supportHead{
            .supportImg{
                width: 280px;
                top: 0;
            }
        }
    }
}
@media (max-width: 991px){
    .tyreSupportSec{
        /*===the heading centres and runs full width here, so the tyre picture
             pinned top-right sat on it; it drops under the lede instead, as on
             phones===*/
        .supportHead{
            .supportImg{
                position: static;
                width: 100%;
                max-width: 420px;
                margin: 24px auto 0;
            }
        }
        .commitWrap{
            .commitList{
                flex-direction: column;
                align-items: center;
                gap: 18px;
                li{
                    padding: 0;
                    &:not(:last-child){
                        border-right: 0;
                    }
                }
            }
        }
    }
}
@media (max-width: 767px){
    .tyreSupportSec{
        .supportHead{
            .supportImg{
                position: static;
                width: 100%;
                margin-top: 20px;
            }
        }
        .commitWrap .commitH{
            font-size: 28px;
        }
    }
}

/*===tyre finder - light panel with dark blue enquiry card===*/
.partFinderSec{
    .finderPanel{
        background-color: #e8eef8;
    }
    .finderCont{
        .tagHolder{
            max-width: 100%;
        }
        p{
            max-width: 520px;
            margin: 26px 0 30px;
            color: #1d2a36;
            font-size: 15px;
            line-height: 1.7;
            letter-spacing: 0.2px;
        }
        .finderPoints{
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin: 0;
            max-width: 560px;
            li{
                display: flex;
                align-items: center;
                gap: 16px;
                padding: 16px 22px;
                background-color: #fff;
                border-radius: 14px;
                box-shadow: 0 8px 20px rgb(11 51 85 / 6%);
                .pointIcon{
                    flex-shrink: 0;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 30px;
                    height: 30px;
                    border-radius: 50%;
                    background-color: #e8eef8;
                    i,
                    svg{
                        font-size: 13px;
                        width: 1em;
                        height: auto;
                        color: var(--blue);
                        fill: currentColor;
                    }
                }
                p{
                    margin: 0;
                    max-width: none;
                    font-size: 14px;
                    line-height: 1.5;
                }
            }
        }
    }
    .finderFormCard{
        padding: 45px 40px;
        background-color: var(--blue);
        border-radius: 24px;
        .formGroup{
            position: relative;
            margin-bottom: 28px;
            input,
            select{
                width: 100%;
                background-color: transparent;
                border-bottom: 1px solid rgb(255 255 255 / 45%);
                padding: 10px 0;
                font-size: 15px;
                font-family: inherit;
                color: #fff;
                border-radius: 0;
                &::placeholder{
                    color: rgb(255 255 255 / 85%);
                }
                &:focus{
                    border-bottom-color: #fff;
                }
            }
            select{
                appearance: none;
                -webkit-appearance: none;
                cursor: pointer;
                &:invalid{
                    color: rgb(255 255 255 / 85%);
                }
                option{
                    color: #1d2a36;
                }
            }
            .selectArrow{
                position: absolute;
                right: 5px;
                top: 14px;
                width: 9px;
                height: 9px;
                border-right: 2px solid #fff;
                border-bottom: 2px solid #fff;
                transform: rotate(45deg);
                pointer-events: none;
            }
        }
        .finderBtnWrap{
            display: flex;
            justify-content: flex-end;
            margin-top: 36px;
        }
        .finderBtn{
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 14px 28px;
            border-radius: 30px;
            background-color: #fff;
            border: 1px solid #fff;
            color: #1d2a36;
            font-size: 15px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all .3s ease;
            i,
            svg{
                font-size: 14px;
                width: 1em;
                height: auto;
                color: #1d2a36;
                fill: currentColor;
                transform: rotate(-45deg);
                transition: transform .3s ease, color .3s ease;
            }
            &:hover{
                background-color: transparent;
                color: #fff;
                i,
                svg{
                    color: #fff;
                    transform: rotate(0deg);
                }
            }
        }
    }
}
@media (max-width: 991px){
    .partFinderSec{
        .finderFormCard{
            margin-top: 40px;
        }
    }
}
@media (max-width: 767px){
    .partFinderSec{
        .finderFormCard{
            padding: 30px 22px;
        }
    }
}

/*===group strength - stat circles & capability chips===*/
.strengthSec{
    .strengthSub{
        max-width: 760px;
        margin: 20px auto 60px;
        color: #4b5a66;
        font-size: 15px;
        letter-spacing: 0.2px;
    }
    .strengthGrid{
        .row{
            row-gap: 50px;
        }
        .strengthItem{
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            height: 100%;
            padding: 0 20px;
            text-align: center;
            border-right: 1px solid #dfe6ee;
            .strengthCircle{
                display: flex;
                align-items: center;
                justify-content: center;
                width: 140px;
                height: 140px;
                border-radius: 50%;
                background-color: var(--blue);
                color: #fff;
                font-size: 27px;
                font-weight: 800;
                line-height: 1.1;
                text-align: center;
                padding: 10px;
                transition: transform .4s ease, box-shadow .4s ease;
            }
            .strengthLabel{
                font-size: 17px;
                line-height: 1.35;
                color: #1d2a36;
            }
            &:hover{
                .strengthCircle{
                    transform: scale(1.06);
                    box-shadow: 0 16px 34px rgb(11 51 85 / 25%);
                }
            }
        }
        .col-lg-3:nth-child(4n) .strengthItem{
            border-right: 0;
        }
    }
    /*===capability chips drifting in one row===*/
    .chipMarqueeWrap{
        overflow: hidden;
        padding: 60px 0 10px;
        .chipMarquee{
            overflow: hidden;
            white-space: nowrap;
            padding: 8px 0;
            ul{
                display: inline-flex;
                margin: 0;
                li{
                    flex-shrink: 0;
                    margin-right: 18px;
                }
            }
        }
        .strengthChip{
            display: inline-block;
            padding: 12px 24px;
            font-size: 14px;
            letter-spacing: 0.2px;
            color: #1d2a36;
            background-color: #eef3f8;
            border: 1px solid #e3eaf2;
            border-radius: 30px;
        }
    }
}
@media (max-width: 991px){
    .strengthSec{
        .strengthGrid{
            .strengthItem{
                border-right: 0;
                .strengthCircle{
                    width: 110px;
                    height: 110px;
                    font-size: 21px;
                }
                .strengthLabel{
                    font-size: 14px;
                }
            }
        }
    }
}

/*===================================================
    Tyre types - one panel per type

    Each sidebar type is its own Tyre Type term, so only the selected
    type's sizes and cards are on screen at a time. The selected type
    also drops out of the list, since it already shows in the box above.
===================================================*/
/* matches the nesting depth of the rule that sets display:flex, so the
   later of the two equal-weight rules wins */
.tyreTypeSec .typeTabs .sizeWrap .sizeList{
    display: none;
}
.tyreTypeSec .typeTabs .sizeWrap .sizeList.is-active{
    display: flex;
}
.tyreTypeSec .tyreTypeContent .tyreTypePane{
    display: none;
}
.tyreTypeSec .tyreTypeContent .tyreTypePane.is-active{
    display: block;
}
.tyreTypeSec .typeEmpty{
    margin: 0;
    padding: 30px 0;
    color: #5c6a78;
    font-size: 16px;
}

/*===================================================
    Tyre types - filter panel

    Every category is a dropdown. The open one reveals the sizes its
    tyres come in, and those chips narrow the cards beside it.
===================================================*/
.tyreTypeSec .typeTabs .typeGroup{
    margin-bottom: 10px;
}
.tyreTypeSec .typeTabs .typeActive{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 0;
    margin: 0;
    background-color: #fff;
    /* border: 1px solid #dfe6ee; */
    border-left: 3px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: #6f7d8a;
    cursor: pointer;
    transition: all .25s ease;
}
.tyreTypeSec .typeTabs .typeActive:hover{
    color: #1d2a36;
    border-color: #c9d6e2;
    padding: 10px 18px;
}
.tyreTypeSec .typeTabs .typeActive i,
.tyreTypeSec .typeTabs .typeActive svg{
    flex: 0 0 auto;
    font-size: 10px;
    width: 1em;
    height: auto;
    fill: currentColor;
    transition: transform .25s ease;
}
.tyreTypeSec .typeTabs .typeGroup.is-open .typeActive{
    background-color: #eef3f8;
    border-color: #dfe6ee;
    border-left-color: var(--blue);
    color: #1d2a36;
    padding: 10px 18px;
}
.tyreTypeSec .typeTabs .typeGroup.is-open .typeActive i,
.tyreTypeSec .typeTabs .typeGroup.is-open .typeActive svg{
    transform: rotate(180deg);
}
/*===the panel below each header===*/
.tyreTypeSec .typeTabs .typePanel{
    display: none;
    padding: 15px 4px 4px;
}
.tyreTypeSec .typeTabs .typeGroup.is-open .typePanel{
    display: block;
}
.tyreTypeSec .typeTabs .sizeWrap{
    padding-bottom: 0;
    border-bottom: 0;
}
.tyreTypeSec .typeTabs .sizeWrap .sizeList{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.tyreTypeSec .typeTabs .sizeWrap .sizeList li{
    padding: 0;
    border: 0;
    background: none;
}
/*===size chips: buttons when they filter, labels when they cannot===*/
.tyreTypeSec .typeTabs .sizeWrap .sizeChip{
    display: block;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.2px;
    color: #1d2a36;
    background-color: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    transition: all .25s ease;
}
.tyreTypeSec .typeTabs .sizeWrap button.sizeChip{
    cursor: pointer;
}
/* .tyreTypeSec .typeTabs .sizeWrap button.sizeChip:hover{
    border-color: var(--blue);
    color: var(--blue);
} */
.tyreTypeSec .typeTabs .sizeWrap .sizeChip.is-on{
    background-color: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.tyreTypeSec .typeTabs .sizeClear{
    margin-top: 14px;
    padding: 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: underline;
    cursor: pointer;
}
/*===cards filtered out by size===*/
.tyreTypeSec .tyreCardGrid .tyreCol.is-hidden{
    display: none;
}
.tyreTypeSec .tyreNoMatch{
    margin: 0;
    padding: 20px 0;
    color: #5c6a78;
    font-size: 16px;
}
/*===the whole card is the link to its details page===*/
.tyreTypeSec .tyreCard{
    display: block;
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease;
}
.tyreTypeSec .tyreCard:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgb(6 32 56 / 12%);
}

/*===================================================
    Tyre filter as a drawer below 992px.

    The sidebar's styles are nested under .tyreTypeSec, so
    custom-type-overview.js moves the <aside> into a body-level
    .tyreTypeSec.tyreFilterDrawer host: it keeps every filter style
    but escapes the section's stacking. On desktop the bar, head and
    foot stay hidden.
===================================================*/
.tyreTypeSec .tyreFilterBar,
.tyreTypeSec .typeTabs .tyreFilterHead,
.tyreTypeSec .typeTabs .tyreFilterFoot{
    display: none;
}
@media (max-width: 991px){
    .tyreTypeSec .tyreFilterBar{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 22px;
    }
    /* the sidebar lives in the drawer here, so the row is just the cards */
    .tyreTypeSec .tyreTypeRow{
        display: block;
    }
}
@media (max-width: 991px){
    .tagHolder .SecH {
        text-align: center;
    }
    .innerHeroSec {
        .innerHeroCont {
            .innerHeroSub {
                text-align: center;
            }
        }
    }
    .innerHeroSec {
        .innerHeroRow {
            align-items: center;
            gap: 30px;
        }
    }
}
.tyreTypeSec .tyreFilterOpen{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    background-color: #fff;
    border: 1px solid #d5dde6;
    border-radius: 999px;
    color: #12314a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    i{
        color: var(--blue);
        font-size: 15px;
    }
    &:hover,
    &:focus-visible{
        border-color: var(--blue);
        box-shadow: 0 4px 14px rgba(22, 103, 166, .12);
    }
    .tyreFilterCount{
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background-color: var(--blue);
        color: #fff;
        font-size: 12px;
        line-height: 22px;
        text-align: center;
    }
}
.tyreTypeSec .tyreFilterSummary{
    color: #6f7d8a;
    font-size: 14px;
    text-align: right;
}

/* the drawer itself */
.tyreFilterDrawer{
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear .35s;
    &.isOpen{
        pointer-events: auto;
        visibility: visible;
        transition: none;
    }
    .tyreFilterBackdrop{
        position: absolute;
        inset: 0;
        background-color: rgba(10, 25, 40, .5);
        opacity: 0;
        transition: opacity .35s ease;
    }
    &.isOpen .tyreFilterBackdrop{
        opacity: 1;
    }
    .typeTabs{
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(340px, 86vw);
        margin: 0;
        padding: 0 22px;
        background-color: #fff;
        border-radius: 0 20px 20px 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
        box-shadow: 8px 0 30px rgba(10, 25, 40, .18);
        transform: translateX(-105%);
        transition: transform .35s cubic-bezier(.22, .61, .36, 1);
    }
    &.isOpen .typeTabs{
        transform: translateX(0);
    }
    .typeTabs .tyreFilterHead{
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 1;
        margin: 0 -22px 20px;
        padding: 18px 22px;
        background-color: #fff;
        border-bottom: 1px solid #e3e8ee;
        .tyreFilterHeadTitle{
            color: #12314a;
            font-size: 18px;
            font-weight: 700;
        }
        .tyreFilterClose{
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 50%;
            background-color: #f1f5f9;
            color: #12314a;
            font-size: 17px;
            cursor: pointer;
        }
    }
    .typeTabs .tyreFilterFoot{
        display: flex;
        position: sticky;
        bottom: 0;
        margin: auto -22px 0;
        padding: 16px 22px;
        background-color: #fff;
        border-top: 1px solid #e3e8ee;
        .tyreFilterApply{
            flex: 1;
            justify-content: center;
            text-align: center;
        }
    }
}
body.tyreFilterLocked{
    overflow: hidden;
}
@media (prefers-reduced-motion: reduce){
    .tyreFilterDrawer .typeTabs,
    .tyreFilterDrawer .tyreFilterBackdrop{
        transition: none;
    }
}

/*===small phones: two brand cards share ~330px, so "View Details" wrapped into a
     tall two-line pill, and a two-line brand name (Emerald Tyres) pushed its
     button lower than its neighbour's. A tighter card, a one-line button, and
     the button pinned to the card's foot so a row lines up.===*/
@media (max-width: 575px){
    .tyreSolSec .tyreBrandGrid .tyreBrandCard{
        padding: 16px 12px;
        .tyreBrandLogo{
            height: 64px;
            margin-bottom: 12px;
            padding: 8px 10px;
        }
        .tyreBrandName{
            font-size: 15px;
            margin-bottom: 14px;
        }
        .btnOne.blueBtn{
            margin-top: auto;
            padding: 8px 14px;
            font-size: 13px;
            white-space: nowrap;
        }
    }
}
