﻿.scollBtns {
    position: relative;
    text-align: center;
    display: none;
}

    .scollBtns button {
        background: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 18px;
        color: #288fd8;
        border: 1px solid;
        margin: 0 2px;
        padding: 0;
        text-align: center;
      
        -webkit-touch-callout: none;
    }

        .scollBtns button[disabled] {
            opacity: 0.3;
        }
.text-center {
    text-align: center;
}

.mg-top-5 {
    margin-top: 5px;
}

.mg-0 {
    margin: 0 !important;
}

.class-data-inner h4 {
    margin-bottom: 0;
}

.mg-btm-5 {
    margin-bottom: 5px !important;
}

.mg-btm-10 {
    margin-bottom: 10px !important;
}

.mg-rt-5 {
    margin-right: 5px;
}

.flx-algn-center {
    display: flex;
    align-items: center;
}

.widget-icons i {
    color: #9a9b9b;
    font-size: 19px;
}

.class-data-inner {
    display: flex;
    align-items: center;
    margin: 13px 9px 0 9px;
    /* border-bottom: 1px solid #ececec; */
    /* padding-bottom: 8px; */
    border-left: 3px solid #a27af1;
}

.class-widget-item-inner {
    padding: 6px;
    width: 265px;
    height: 100%;
}

.class-label {
    margin-left: 10px;
}

    .class-label p, .time-label p {
        color: #6d6d6d;
        font-size: 13px;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
    }

    .class-label h4, .time-label h4 {
        color: black;
        font-size: 13.5px;
    }

.widget-items-inner {
    background: white;
    margin: 2px;
    padding: 11px;
    position: relative;
    /*border-radius: 25px;*/
    padding-bottom: 100px;
    height: 100%;
    position: relative;
    border-radius: 15px;
}

.class-widgets-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.addtoClass-inner-item {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.help-icon {
    color: #c4c4c4 !important;
    font-size: 12px !important;
    margin-left: 4px;
}

.flx-column {
    display: flex;
    margin: 11px 12px 0;
    align-items: normal;
    justify-content: space-between;
}

.time-widget-item-inner {
    padding: 0 10px;
}

.days-widget {
    box-shadow: 1px 1px 10px 0px #e6e6e6;
    border-radius: 13px;
}

.timeCarousel .carousel-inner > .item {
    padding: 10px 0;
}

.week-days {
    width: 100%;
    text-align: center;
    margin: auto;
}

    .week-days span {
        font-size: 12px;
        padding: 0px;
        color: dimgrey;
        font-weight: 700;
        align-items: center;
        background: white;
        margin: 4px;
        height: 29px;
        justify-content: center;
        width: 28px;
        display: inline-flex;
        border-radius: 5px;
        box-shadow: 2px 2px 5px 1px #efefef;
    }

    /* Full day names styling - Enterprise Grade */
    .week-days.week-days-full {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px !important;
        padding: 8px 3px !important;
        width: 100% !important;
    }

    .week-days.week-days-full span {
        width: 100% !important;
        min-width: unset !important;
        max-width: none !important;
        padding: 5px 2px !important;
        font-size: 10px !important;
        font-weight: 600;
        white-space: nowrap !important;
        border-radius: 4px !important;
        height: 26px !important;
        box-shadow: none !important;
        transition: all 0.15s ease;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: center;
        letter-spacing: -0.3px;
        margin: 0 !important;
    }

    .week-days.week-days-full span:not(.active) {
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        color: #6c757d;
    }

    .week-days.week-days-full span:not(.active):hover {
        background: #f8f9fa !important;
        border-color: #e9ecef !important;
        color: #6c757d !important;
        cursor: default !important;
    }

    .week-days.week-days-full span.active {
        border: none;
        font-weight: 700;
    }

    /* Last row - single item centered */
    .week-days.week-days-full span:nth-child(7) {
        grid-column: 2;
    }

        .week-days span.active {
            color: #fff;
        }

        .week-days span:not(.active):hover {
            background: #2660e2;
            color: white;
            transition: 0.5s ease all;
            cursor: pointer;
        }

        /* Override: Full day names inactive should NOT change on hover */
        .week-days.week-days-full span:not(.active):hover {
            background: #f8f9fa !important;
            border: 1px solid #e9ecef !important;
            color: #6c757d !important;
            cursor: default !important;
        }

.amount-label, .price-label, .class {
    font-weight: 600;
    display: inline-block;
}

.timeAmount-widgets {
    margin-top: 15px;
}

.price-label {
    color: black;
    font-size: 17px;
}

.class {
    width: 234px;
}

.amount-label {
    max-width: 155px;
}

.amount-label, .class {
    color: #a27af1;
    font-size: 17px;
    margin-left: 3px;
    text-transform: capitalize;
    word-break: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.btn-widget {
    color: white;
    padding: 8px 18px;
    display: flex;
    justify-content: center;
    position: absolute;
    align-items: center;
    width: 85%;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 27px;
    font-size: 13px;
    border-radius: 9px;
    border: 0 !important;
    opacity: 1 !important;
}

    .btn-widget:hover, .btn-widget:active, .btn-widget:focus {
        color: white !important;
    }

    .btn-widget i {
        font-size: 13px;
    }

.class-widget-items:nth-child(5n+1) .week-days span.active, .class-widget-items:nth-child(5n+1) .btn-widget, .class-widget-items:nth-child(5n+1) .week-days label input.days-checkbox:checked ~ span,
.class-widget-items:nth-child(5n+1) .week-days span:not(.active):hover, .class-widget-items:nth-child(5n+1) .anyTime--class,
.class-widget-items:nth-child(5n+1) .amount-tags span, .class-widget-items:nth-child(5n+1) .AmountLabel-tags .time-span {
    background: var(--first-color);
}

.class-widget-items:nth-child(5n+2) .week-days span.active, .class-widget-items:nth-child(5n+2) .btn-widget, .class-widget-items:nth-child(5n+2) .week-days label input.days-checkbox:checked ~ span,
.class-widget-items:nth-child(5n+2) .week-days span:not(.active):hover, .class-widget-items:nth-child(5n+2) .anyTime--class,
.class-widget-items:nth-child(5n+2) .amount-tags span, .class-widget-items:nth-child(5n+2) .AmountLabel-tags .time-span {
    background: var(--second-color);
}

.class-widget-items:nth-child(5n+3) .week-days span.active, .class-widget-items:nth-child(5n+3) .btn-widget, .class-widget-items:nth-child(5n+3) .week-days label input.days-checkbox:checked ~ span,
.class-widget-items:nth-child(5n+3) .week-days span:not(.active):hover, .class-widget-items:nth-child(5n+3) .anyTime--class,
.class-widget-items:nth-child(5n+3) .amount-tags span, .class-widget-items:nth-child(5n+3) .AmountLabel-tags .time-span {
    background: var(--third-color);
}

.class-widget-items:nth-child(5n+4) .week-days span.active, .class-widget-items:nth-child(5n+4) .btn-widget, .class-widget-items:nth-child(5n+4) .week-days label input.days-checkbox:checked ~ span,
.class-widget-items:nth-child(5n+4) .week-days span:not(.active):hover, .class-widget-items:nth-child(5n+4) .anyTime--class,
.class-widget-items:nth-child(5n+4) .amount-tags span, .class-widget-items:nth-child(5n+4) .AmountLabel-tags .time-span {
    background: var(--fourth-color);
}

.class-widget-items:nth-child(5n+5) .week-days span.active, .class-widget-items:nth-child(5n+5) .btn-widget, .class-widget-items:nth-child(5n+5) .week-days label input.days-checkbox:checked ~ span,
.class-widget-items:nth-child(5n+5) .week-days span:not(.active):hover, .class-widget-items:nth-child(5n+5) .anyTime--class,
.class-widget-items:nth-child(5n+5) .amount-tags span, .class-widget-items:nth-child(5n+5) .AmountLabel-tags .time-span {
    background: var(--fifth-color);
}


.class-widget-items:nth-child(5n+1) .AmountLabel-tags .price .auto-detuct {
    background: var(--first-color);
}
.class-widget-items:nth-child(5n+2) .AmountLabel-tags .price .auto-detuct {
    background: var(--second-color);
}
.class-widget-items:nth-child(5n+3) .AmountLabel-tags .price .auto-detuct {
    background: var(--third-color);
}
.class-widget-items:nth-child(5n+4) .AmountLabel-tags .price .auto-detuct {
    background: var(--fourth-color);
}
.class-widget-items:nth-child(5n+5) .AmountLabel-tags .price .auto-detuct {
    background: var(--fifth-color);
}


.class-widget-items:nth-child(5n+1) .class-data-inner {
    border-left: 3px solid var(--first-color);
}

.class-widget-items:nth-child(5n+2) .class-data-inner {
    border-left: 3px solid var(--second-color);
}

.class-widget-items:nth-child(5n+3) .class-data-inner {
    border-left: 3px solid var(--third-color);
}

.class-widget-items:nth-child(5n+4) .class-data-inner {
    border-left: 3px solid var(--fourth-color);
}

.class-widget-items:nth-child(5n+5) .class-data-inner {
    border-left: 3px solid var(--fifth-color);
}

.class-widget-items:nth-child(5n+1) .amount-label, .class-widget-items:nth-child(5n+1) .class {
    color: var(--first-color);
}

.class-widget-items:nth-child(5n+2) .amount-label, .class-widget-items:nth-child(5n+2) .class {
    color: var(--second-color);
}

.class-widget-items:nth-child(5n+3) .amount-label, .class-widget-items:nth-child(5n+3) .class {
    color: var(--third-color);
}

.class-widget-items:nth-child(5n+4) .amount-label, .class-widget-items:nth-child(5n+4) .class {
    color: var(--fourth-color);
}

.class-widget-items:nth-child(5n+5) .amount-label, .class-widget-items:nth-child(5n+5) .class {
    color: var(--fifth-color);
}

.class-widget-items:nth-child(5n+1) .widget-items-inner:after {
    background: linear-gradient(130deg, var(--first-color), rgb(255 255 255 / 13%) 91.07%, var(--first-color) 91.07%);
}

.class-widget-items:nth-child(5n+2) .widget-items-inner:after {
    background: linear-gradient(130deg, var(--second-color), rgb(255 255 255 / 13%) 91.07%, var(--second-color) 91.07%);
}

.class-widget-items:nth-child(5n+3) .widget-items-inner:after {
    background: linear-gradient(130deg, var(--third-color), rgb(255 255 255 / 13%) 91.07%, var(--third-color) 91.07%);
}

.class-widget-items:nth-child(5n+4) .widget-items-inner:after {
    background: linear-gradient(130deg, var(--fourth-color), rgb(255 255 255 / 13%) 91.07%, var(--fourth-color) 91.07%);
}

.class-widget-items:nth-child(5n+5) .widget-items-inner:after {
    background: linear-gradient(130deg, var(--fifth-color), rgb(255 255 255 / 13%) 91.07%, var(--fifth-color) 91.07%);
}

.classlist-cancel-btn, .classlist-cancel-btn:hover {
    background: #1271c4;
    color: white;
    padding: 8px 35px;
    border-radius: 7px;
    font-size: 16px;
}

.addtocart-btn {
    background: #1271c4;
    color: white !important;
    padding: 8px 35px;
    border-radius: 7px;
    font-size: 16px;
}

.modal-close-btn {
    position: absolute;
    right: 0;
}

#CoursesListModal .modal-header:before, #CoursesListModal .modal-header:after {
    display: none;
}

#CoursesListModal .modal-header:not(.clm-modal-header), #ClassDetailsModal .modal-header {
    background: transparent !important;
    border: 0;
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 39px 10px;
    flex-wrap:wrap;
}

    #CoursesListModal .modal-header:not(.clm-modal-header) .modal-header-text, #ClassDetailsModal .modal-header .modal-header-text span:first-child {
        color: black !important;
        justify-content: center !important;
        font-size: 22px !important;
        padding-left: 10px;
        border-left: 3px solid;
        font-weight: 700;
        /*width: 100%;*/
    }

    #ClassDetailsModal .modal-header .modal-header-text span:last-child {
        color: #288fd8 !important;
        justify-content: center !important;
        font-size: 17px !important;
        font-weight: 600;
        margin-top: 3px;
    }

#CoursesListModal .modal-dialog .modal-content, #ClassDetailsModal .modal-dialog .modal-content {
    border-radius: 0 !important;
    border: 0 !important;
    background: #f5f7fdfa;
    height: auto;
    min-height: 100%;
}

.modal.left.fade .modal-dialog {
    left: -320px;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
    -o-transition: opacity 0.3s linear, left 0.3s ease-out;
    transition: opacity 0.3s linear, left 0.3s ease-out;
}

.modal.left.fade.in .modal-dialog {
    left: 0;
}

#CoursesListModal .modal-footer {
    border: 0 !important;
    padding-right: 30px;
}

.fee-week {
    margin: 0;
    font-size: 11px;
    text-align: end;
    color: #6d6d6d;
}

#CoursesListModal .modal-header:not(.clm-modal-header) button.modal-close-btn i,
#ClassDetailsModal .modal-header button.modal-close-btn i {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    z-index: 1100;
    position: absolute;
    font-size: 16px;
    right: -18px;
    justify-content: center;
    opacity: 1;
    color: #288fd8;
}

#CoursesListModal .modal-header:not(.clm-modal-header) button.modal-close-btn,
#ClassDetailsModal .modal-header button.modal-close-btn {
    opacity: 1;
}

.class-widget-items:hover .widget-items-inner:after {
    -webkit-animation: slide 1s normal;
    animation: slide 1s normal;
}

.class-widget-items:hover .widget-items-inner:before {
    -webkit-animation: slide1 0.6s normal;
    animation: slide1 0.6s normal;
}

.widget-items-inner:after {
    content: '';
    top: 23px;
    transform: translateY(-5%);
    width: 103%;
    height: 100%;
    position: absolute;
    z-index: -1;
    opacity: 0;
    /* border-radius: 28px; */
    left: -3px;
}

.widget-items-inner:before {
    content: '';
    top: 0px;
    opacity: 0;
    transform: translateY(-1%);
    width: 100%;
    height: 102%;
    position: absolute;
    z-index: -1;
    background: linear-gradient(130deg, rgb(190 234 136) 41.07%, rgb(65 236 126) 76.05%);
    /* border-radius: 28px; */
    left: 0px;
    /* bottom: -5px; */
}

.class-widget-items {
    position: relative;
    z-index: 0;
    margin: 9px;
    overflow: hidden;
    padding-bottom: 4px;
    border-radius: 18px;
    display: flex;
}

.left-arrow, .right-arrow {
    background-image: unset !important;
    background-repeat: unset !important;
    top: 0;
    bottom: 0;
    margin: auto;
    background: white;
    width: 22px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    border-radius: 50%;
    background: white;
    box-shadow: 1px 1px 5px 0px #e7e7e7;
}

.right-arrow {
    right: -7px !important;
}

.left-arrow {
    left: -7px !important;
}

.fa-chevron-left, .fa-chevron-right {
    color: dimgrey;
}

.carousel-inner > .item {
    transition: transform 0.6s ease-in-out !important;
}

@keyframes slide {
    0% {
        opacity: 1;
        transform: translateY(-100%);
    }

    25% {
        opacity: 0.5;
        transform: translateY(-25%);
    }

    75% {
        opacity: 0.7;
        transform: translateY(75%);
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slide1 {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.modal-header:before, .modal-header:after {
    display: none;
}

#CoursesListModal, #ClassDetailsModal {
    padding: 0 !important;
}

.owl-stage .owl-item.active {
    width: 100%;
}

.auto-detuct, .time-span {
    background: #a27af1;
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.instructor-info {
    line-height: 1.1;
}

.AmountLabel-tags {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.instructor-info h4 {
    font-size: 13.5px;
}
.course-has-class-addons {
    position: absolute;
    bottom: 21px;
    left: 0;
    right: 0;
    margin: 0;
}
    .course-has-class-addons .enroll-unenroll-btn {
        padding: 0;
        margin-bottom: 6px;
    }
        .course-has-class-addons .enroll-unenroll-btn .btn-widget {
            position: unset;
            visibility: visible !important;
        }
    .course-has-class-addons .add-on-btn {
        padding: 0;
        margin-bottom: 6px;
    }
        .course-has-class-addons .add-on-btn .btn-widget {
            position: unset;
        }
@media screen and (max-width:768px) {
    .classlist-cancel-btn, .classlist-cancel-btn:hover {
        padding: 8px 16px;
    }

    /* Responsive full day names */
    .week-days.week-days-full {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px !important;
    }

    .week-days.week-days-full span {
        padding: 4px 1px !important;
        font-size: 9px !important;
        height: 24px !important;
    }
}
@media screen and (max-width:425px) {
    #CoursesListModal .modal-header:not(.clm-modal-header) button.modal-close-btn i,
    #ClassDetailsModal .modal-header button.modal-close-btn i {
        bottom: -15px;
        right: 15px !important;
        top: -58px;
    }

    #CoursesListModal .modal-header:not(.clm-modal-header), #ClassDetailsModal .modal-header {
        padding: 25px 6px 10px !important;
    }

    #ClassDetailsModal .modal-header-text {
        flex-direction: column;
        align-items: center;
    }

    #ClassDetailsModal .modal-header .modal-header-text span:first-child {
        font-size: 20px !important;
    }

    /* Responsive full day names for small screens */
    .week-days.week-days-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px !important;
    }

    .week-days.week-days-full span {
        padding: 3px 1px !important;
        font-size: 9px !important;
        height: 22px !important;
    }

    .week-days.week-days-full span:nth-child(7) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto !important;
    }
}



@media screen and (max-width:320px) {

    .class-widget-item-inner {
        width: 100%;
    }

    .time-widget-item-inner {
        padding: 0;
    }
}

@media screen and (min-width: 992px) {
    #CoursesListModal .modal-lg, #ClassDetailsModal .modal-lg {
        width: 95% !important;
        height: 100%;
    }
}

@media screen and (max-width:991px) {
    #CoursesListModal .modal-dialog, #ClassDetailsModal .modal-dialog {
        width: 100%;
    }

    .class-widgets-wrapper {
        justify-content: space-evenly !important;
    }

    #CoursesListModal .modal-header, #ClassDetailsModal .modal-header {
        padding: 25px 62px 10px;
    }
     #CoursesListModal .modal-header, #ClassDetailsModal .modal-header {
        padding: 25px 62px 10px;
    }

        #CoursesListModal .modal-header:not(.clm-modal-header) button.modal-close-btn i,
        #ClassDetailsModal .modal-header button.modal-close-btn i {
            right: 9px !important;
            box-shadow: 1px 1px 9px 3px #e6e4e4 !important;
            top: -18px;
        }

    .class-widget-items {
        margin-bottom: 40px !important;
    }
}
.slide_from_left:not(.in) .modal-dialog{
    transform:translate(-100%,0)
}
@media screen and (max-width:767px){
    #CoursesListModal .modal-header, #ClassDetailsModal .modal-header {
        padding: 25px 8px 10px;
    }
    #ClassDetailsModal .modal-dialog, #ClassDetailsModal .modal-dialog .modal-content {
        height: 100%;
        overflow: hidden;
    }
    .class-widgets-wrapper {
        margin-bottom: 80px;
    }
    .age-field-main {
        grid-gap: 5px
    }
    .addtocart-btn{
        padding: 5px 8px;
    }
    #CoursesListModal .modal-header:not(.clm-modal-header) button.modal-close-btn i,
    #ClassDetailsModal .modal-header button.modal-close-btn i{
        width: 30px;
        height: 30px;
    }
    .scollBtns {
        display: inline-block;
    }
}
/*image fieldset UI*/
.age-field-main {
    display: flex;
    grid-gap: 10px
}

    .age-field-main .btn-primary {
        margin-bottom: 10px;
    }

.age-input {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

    .age-input input {
        z-index: 1;
        border: none;
        outline: none;
        background: #ffffff;
        padding: 11px 6px 11px 98px;
        border-radius: 3px;
        font-weight: 200;
        width: 100%;
        height: 44px;
    }

        .age-input input:focus ~ .text {
            background: #288fd8;
            color: #ffffff;
            font-size: 11px;
        }

        .age-input input:focus {
            padding: 20px 20px 20px 84px;
        }
.age-to-input input:focus {
    padding: 20px 20px 20px 70px;
}
.age-input .text {
    border-radius: 3px 0 0 3px;
    display: block;
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 2;
    padding: 14px 7px;
    transition: 0.25s ease-in-out;
    background: rgb(218 222 232 / 62%);
    text-transform:capitalize

}
/* make class widgets days selectable change*/

.class-widget-items .anyTime--class {
    position: absolute;
    right: -24px;
    top: 14px;
    transform: rotate(44deg);
    width: 100px;
    text-align: center;
    padding: 3px 0;
    color: #fff;
}
.class-widget-items .anyTime--class p {
    font-size: 10px;
    font-weight:700;
    margin: 0;
    white-space: nowrap;
}


.class-widget-items .week-days label input.days-checkbox {
    display: none;
}
.class-widget-items .week-days label input.days-checkbox:checked ~ span {
    color: #fff;
}


.class-widget-items .week-days label span:hover {
    color: dimgrey;
}

.class-widget-items:nth-child(5n+1) .week-days label input.days-checkbox:not(:checked) ~ span:hover {
    background: transparent;
    border: 1px solid var(--first-color);
}

.class-widget-items:nth-child(5n+2) .week-days label input.days-checkbox:not(:checked) ~ span:hover {
    background: transparent;
    border: 1px solid var(--second-color);
}

.class-widget-items:nth-child(5n+3) .week-days label input.days-checkbox:not(:checked) ~ span:hover {
    background: transparent;
    border: 1px solid var(--third-color);
}

.class-widget-items:nth-child(5n+4) .week-days label input.days-checkbox:not(:checked) ~ span:hover {
    background: transparent;
    border: 1px solid var(--fourth-color);
}

.class-widget-items:nth-child(5n+5) .week-days label input.days-checkbox:not(:checked) ~ span:hover {
    background: transparent;
    border: 1px solid var(--fifth-color);
}

.oldPrice {
    text-decoration: line-through;
}

.has-start-date {
    padding-bottom: 62px;
}

.class-item-start-date {
    position: absolute;
    bottom: 74px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    z-index: 1;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 10px;
}
    .class-item-start-date label {
        margin: 0;
        flex: 1 1 auto;
        color: black;
        font-size: 13.5px;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 600;
    }
    .class-item-start-date input {
        max-width: 150px;
        border-radius: 9px !IMPORTANT;
        box-shadow: 1px 1px 7px 0px #e6e6e6;
    }

/* ============================================
   Enterprise Grade Filter Styles
   ============================================ */

#CoursesListModal .modal-header.clm-modal-header {
    background: #fff !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
    border-bottom: none !important;
}

#CoursesListModal .clm-header-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #e8ecef !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

#CoursesListModal .clm-header-top .modal-close-btn {
    position: relative !important;
    color: #333 !important;
    opacity: 1;
    font-size: 28px !important;
    font-weight: normal !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-right: 15px !important;
    line-height: 1 !important;
}

#CoursesListModal .clm-header-top .modal-close-btn:hover {
    color: #1271C4 !important;
}

#CoursesListModal .clm-header-top .modal-header-text {
    color: #333 !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600;
    border-left: 3px solid #1271C4 !important;
    padding-left: 12px !important;
    flex: 0 0 auto !important;
    margin-right: auto !important;
    text-align: left !important;
}

#CoursesListModal .clm-header-top .addtocart-btn {
    background: #1271C4 !important;
    border: none !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#CoursesListModal .clm-header-top .addtocart-btn:hover {
    background: #0d5a9e !important;
}

#CoursesListModal .clm-header-top .addtocart-btn i {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: white !important;
    font-size: 14px !important;
    display: inline !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
}

/* ClassDetailsModal header styles */
#ClassDetailsModal .clm-header-top .modal-close-btn {
    position: relative !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#ClassDetailsModal .clm-header-top .modal-close-btn i {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: #1271C4 !important;
    font-size: 16px !important;
    display: inline !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#ClassDetailsModal .clm-header-top .modal-close-btn:hover {
    background: #f5f5f5 !important;
    border-color: #1271C4 !important;
}

#ClassDetailsModal .clm-header-top .addtocart-btn {
    background: #1271C4 !important;
    border: none !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

#ClassDetailsModal .clm-header-top .addtocart-btn:hover {
    background: #0d5a9e !important;
}

#ClassDetailsModal .clm-header-top .addtocart-btn i {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: white !important;
    font-size: 14px !important;
    display: inline !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
}

/* Filter Section */
#CoursesListModal .clm-filter-section {
    background: white;
    padding: 20px 25px;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    box-sizing: border-box !important;
}

#CoursesListModal .clm-filter-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 15px;
    margin-bottom: 15px;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

#CoursesListModal .clm-filter-row:last-of-type {
    margin-bottom: 0;
}

#CoursesListModal .clm-filter-group {
    flex: 1 1 180px !important;
    min-width: 180px !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}

#CoursesListModal .clm-filter-search {
    flex: 2 1 280px !important;
    min-width: 280px !important;
    max-width: 100% !important;
}

#CoursesListModal .clm-filter-date {
    flex: 1.5 1 280px !important;
    min-width: 280px !important;
    max-width: 100% !important;
}

#CoursesListModal .clm-filter-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #5a6a7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

#CoursesListModal .clm-filter-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e0e6ed !important;
    border-radius: 8px !important;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    transition: all 0.2s ease;
}

#CoursesListModal .clm-filter-input:focus {
    border-color: #1271C4 !important;
    background: white;
    box-shadow: 0 0 0 3px rgba(18, 113, 196, 0.1);
    outline: none;
}

#CoursesListModal .clm-filter-input::placeholder {
    color: #aab4c0;
}

#CoursesListModal .clm-filter-select {
    width: 100%;
    height: 42px;
    border: 1px solid #e0e6ed !important;
    border-radius: 8px !important;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#CoursesListModal .clm-filter-select:focus {
    border-color: #1271C4 !important;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(18, 113, 196, 0.1);
    outline: none;
}

/* Search Input with Icon */
#CoursesListModal .clm-search-input-wrapper {
    position: relative;
}

#CoursesListModal .clm-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab4c0;
    font-size: 14px;
    z-index: 1;
}

#CoursesListModal .clm-search-input-wrapper .clm-filter-input {
    padding-left: 40px;
    padding-right: 36px;
}

#CoursesListModal .clm-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #e8ecef;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

#CoursesListModal .clm-clear-btn:hover {
    background: #d0d6dc;
}

#CoursesListModal .clm-clear-btn i {
    font-size: 10px;
    color: #5a6a7a;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
}

#CoursesListModal .clm-clear-btn.hidden {
    display: none;
}

/* Date Range */
#CoursesListModal .clm-date-range-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

#CoursesListModal .clm-date-input {
    flex: 1;
    min-width: 0;
}

#CoursesListModal .clm-date-separator {
    color: #8a9aaa;
    font-size: 13px;
    font-weight: 500;
}

/* Age Range */
#CoursesListModal .clm-age-range-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

#CoursesListModal .clm-age-input {
    flex: 1;
    min-width: 0;
    text-align: center;
}

#CoursesListModal .clm-age-separator {
    color: #8a9aaa;
    font-size: 16px;
    font-weight: 500;
}

/* Filter Actions */
#CoursesListModal .clm-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8ecef;
}

#CoursesListModal .clm-btn-apply {
    background: linear-gradient(135deg, #1271C4 0%, #0d5a9e 100%);
    color: white !important;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#CoursesListModal .clm-btn-apply:hover {
    background: linear-gradient(135deg, #0d5a9e 0%, #094a82 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 113, 196, 0.3);
}

#CoursesListModal .clm-btn-apply:active {
    transform: translateY(0);
}

#CoursesListModal .clm-btn-reset {
    background: #f5f7fa;
    color: #5a6a7a !important;
    border: 1px solid #e0e6ed;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

#CoursesListModal .clm-btn-reset:hover {
    background: #e8ecef;
    border-color: #d0d6dc;
}

#CoursesListModal .clm-results-count {
    margin-left: auto;
    font-size: 13px;
    color: #5a6a7a;
    background: #f0f4f8;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 500;
}

#CoursesListModal .clm-results-count span {
    font-weight: 700;
    color: #1271C4;
}

/* No Results Message */
#CoursesListModal .clm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8a9aaa;
    width: 100%;
}

#CoursesListModal .clm-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

#CoursesListModal .clm-no-results h4 {
    color: #5a6a7a;
    margin-bottom: 8px;
}

#CoursesListModal .clm-no-results p {
    font-size: 14px;
}

/* Responsive Styles for Filter */
@media screen and (max-width: 991px) {
    #CoursesListModal .clm-filter-section {
        padding: 15px 20px;
    }

    #CoursesListModal .clm-filter-row {
        gap: 12px;
    }

    #CoursesListModal .clm-filter-group {
        min-width: 150px;
    }

    #CoursesListModal .clm-filter-search {
        min-width: 100%;
        flex-basis: 100%;
    }

    #CoursesListModal .clm-header-top {
        padding: 12px 20px;
    }
}

@media screen and (max-width: 767px) {
    #CoursesListModal .clm-header-top {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px !important;
    }

    #CoursesListModal .clm-header-top .modal-header-text {
        order: 1;
        font-size: 18px !important;
    }

    #CoursesListModal .clm-header-top .modal-close-btn {
        order: 0;
    }

    #CoursesListModal .clm-header-top .addtocart-btn {
        order: 2;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    #CoursesListModal .clm-filter-section {
        padding: 12px 15px;
    }

    #CoursesListModal .clm-filter-row {
        flex-direction: column;
        gap: 12px;
    }

    #CoursesListModal .clm-filter-group {
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    #CoursesListModal .clm-filter-search,
    #CoursesListModal .clm-filter-date {
        min-width: 100% !important;
    }

    #CoursesListModal .clm-filter-input,
    #CoursesListModal .clm-filter-select {
        height: 44px;
        font-size: 14px;
        border-radius: 6px !important;
    }

    #CoursesListModal .clm-filter-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        width: 100%;
    }

    #CoursesListModal .clm-btn-apply {
        flex: 1 1 auto;
        justify-content: center;
        padding: 12px 16px;
        min-width: 0;
    }

    #CoursesListModal .clm-btn-reset {
        flex: 0 0 auto;
        justify-content: center;
        padding: 12px 16px;
    }

    #CoursesListModal .clm-results-count {
        flex: 0 0 auto;
        text-align: center;
        margin-left: 0;
        padding: 10px 12px;
        font-size: 12px;
    }

    #CoursesListModal .clm-date-range-wrapper,
    #CoursesListModal .clm-age-range-wrapper {
        gap: 8px;
    }

    #CoursesListModal .clm-date-range-wrapper {
        flex-direction: row;
    }

    #CoursesListModal .clm-age-range-wrapper {
        flex-direction: row;
    }
}

@media screen and (max-width: 480px) {
    #CoursesListModal .clm-header-top .modal-header-text {
        font-size: 16px !important;
        flex: 1;
        text-align: center;
    }

    #CoursesListModal .clm-filter-actions {
        flex-wrap: wrap !important;
    }

    #CoursesListModal .clm-btn-apply {
        flex: 1 1 45%;
        font-size: 13px;
    }

    #CoursesListModal .clm-btn-reset {
        flex: 1 1 45%;
        font-size: 13px;
    }

    #CoursesListModal .clm-results-count {
        flex: 1 1 100%;
        margin-top: 8px;
    }

    #CoursesListModal .clm-header-top .addtocart-btn {
        width: 100%;
        justify-content: center;
    }

    #CoursesListModal .clm-filter-label {
        font-size: 10px;
    }
}

/* Edge Close Button for ClassDetailsModal - positioned half on edge */
#ClassDetailsModal .modal-dialog {
    position: relative !important;
}

#ClassDetailsModal .clm-edge-close-btn {
    position: absolute !important;
    top: 18px !important;
    right: -20px !important;
    z-index: 1100 !important;
    opacity: 1 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
}

/* Remove double border lines from ClassDetailsModal header */
#ClassDetailsModal .modal-header.clm-modal-header {
    border-left: none !important;
    border: none !important;
}

#ClassDetailsModal .modal-content {
    border-left: none !important;
}

#ClassDetailsModal .clm-header-top {
    border-left: none !important;
}

#ClassDetailsModal .clm-header-top .modal-header-text {
    border-left: 4px solid #1271C4 !important;
}

/* Remove any extra border from modal-title */
#ClassDetailsModal .modal-title {
    border-left: 4px solid #1271C4 !important;
}

#ClassDetailsModal .modal-header-text::before {
    display: none !important;
}

/* Ensure nested spans don't have border */
#ClassDetailsModal .modal-header-text span {
    border-left: none !important;
}

#ClassDetailsModal .modal-header-text .courseName {
    border-left: none !important;
}

#ClassDetailsModal .modal-header-text .courseAge {
    border-left: none !important;
}

#ClassDetailsModal .clm-edge-close-btn:hover {
    background: #f5f5f5 !important;
    border-color: #1271C4 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

#ClassDetailsModal .clm-edge-close-btn i {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: #1271C4 !important;
    font-size: 16px !important;
    display: inline !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Edge Close Button for CoursesListModal - positioned half on edge */
#CoursesListModal .modal-dialog {
    position: relative !important;
}

#CoursesListModal .clm-edge-close-btn {
    position: absolute !important;
    top: 18px !important;
    right: -20px !important;
    z-index: 1100 !important;
    opacity: 1 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
}

#CoursesListModal .clm-edge-close-btn:hover {
    background: #f5f5f5 !important;
    border-color: #1271C4 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

#CoursesListModal .clm-edge-close-btn i {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: #1271C4 !important;
    font-size: 16px !important;
    display: inline !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Remove double border lines from CoursesListModal header */
#CoursesListModal .modal-header.clm-modal-header {
    border-left: none !important;
    border: none !important;
}

#CoursesListModal .modal-content {
    border-left: none !important;
}

#CoursesListModal .clm-header-top {
    border-left: none !important;
}

#CoursesListModal .clm-header-top .modal-header-text {
    border-left: 4px solid #1271C4 !important;
}

/* Ensure nested spans don't have border in CoursesListModal */
#CoursesListModal .modal-header-text span {
    border-left: none !important;
}

/* ============================================
   RESPONSIVE STYLES FOR BOTH MODALS
   ============================================ */

/* Tablet and below (768px) */
@media screen and (max-width: 768px) {
    /* ClassDetailsModal Responsive */
    #ClassDetailsModal .clm-header-top {
        flex-wrap: wrap !important;
        padding: 15px 15px 15px 15px !important;
        gap: 10px !important;
        padding-right: 50px !important;
    }

    #ClassDetailsModal .clm-header-top .modal-header-text {
        flex: 1 1 100% !important;
        font-size: 16px !important;
        min-width: 0 !important;
        padding-left: 12px !important;
        order: 1 !important;
    }

    #ClassDetailsModal .clm-header-top .modal-header-text span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block !important;
        max-width: 100% !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    #ClassDetailsModal .clm-header-buttons {
        margin-right: 0 !important;
        order: 2 !important;
    }

    #ClassDetailsModal .clm-header-buttons .addtocart-btn {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }

    #ClassDetailsModal .clm-edge-close-btn {
        top: 15px !important;
        right: 5px !important;
        width: 36px !important;
        height: 36px !important;
    }

    #ClassDetailsModal .clm-edge-close-btn i {
        font-size: 14px !important;
    }

    /* ClassDetailsModal Filter Section Responsive */
    #ClassDetailsModal .clm-filter-section {
        padding: 12px 15px !important;
    }

    #ClassDetailsModal .clm-filter-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    #ClassDetailsModal .clm-filter-group {
        min-width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    #ClassDetailsModal .clm-filter-search,
    #ClassDetailsModal .clm-filter-date,
    #ClassDetailsModal .clm-filter-age {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    #ClassDetailsModal .clm-filter-input,
    #ClassDetailsModal .clm-date-input,
    #ClassDetailsModal .clm-age-input {
        height: 44px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }

    #ClassDetailsModal .clm-filter-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        margin-top: 5px !important;
        width: 100% !important;
    }

    #ClassDetailsModal .clm-btn-apply {
        flex: 1 1 auto !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        height: 44px !important;
    }

    #ClassDetailsModal .clm-btn-reset {
        flex: 0 0 auto !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        height: 44px !important;
    }

    #ClassDetailsModal .clm-results-count {
        flex: 0 0 auto !important;
        text-align: center !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
        height: 44px !important;
    }

    #ClassDetailsModal .clm-date-range-wrapper,
    #ClassDetailsModal .clm-age-range-wrapper {
        gap: 8px !important;
    }

    /* CoursesListModal Responsive */
    #CoursesListModal .clm-header-top {
        flex-wrap: wrap !important;
        padding: 15px 15px 15px 15px !important;
        gap: 10px !important;
        padding-right: 50px !important;
    }

    #CoursesListModal .clm-header-top .modal-header-text {
        flex: 1 1 100% !important;
        font-size: 16px !important;
        min-width: 0 !important;
        padding-left: 12px !important;
        order: 1 !important;
    }

    #CoursesListModal .clm-header-top .modal-header-text span {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block !important;
        max-width: 100% !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    #CoursesListModal .clm-header-buttons,
    #CoursesListModal .clm-header-top .clm-header-buttons,
    #CoursesListModal .clm-header-top > .clm-header-buttons {
        margin-right: 0 !important;
        order: 2 !important;
        flex-shrink: 0 !important;
    }

    #CoursesListModal .clm-header-buttons .addtocart-btn,
    #CoursesListModal .clm-header-top .clm-header-buttons .addtocart-btn {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }

    #CoursesListModal .clm-edge-close-btn {
        top: 15px !important;
        right: 5px !important;
        width: 36px !important;
        height: 36px !important;
    }

    #CoursesListModal .clm-edge-close-btn i {
        font-size: 14px !important;
    }
}

/* Mobile (576px and below) */
@media screen and (max-width: 576px) {
    /* ClassDetailsModal Mobile */
    #ClassDetailsModal .clm-header-top {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        padding: 12px 50px 12px 12px !important;
        gap: 10px !important;
    }

    #ClassDetailsModal .clm-header-top .modal-header-text {
        flex: 1 1 100% !important;
        font-size: 14px !important;
        padding-left: 10px !important;
        border-left-width: 3px !important;
        width: calc(100% - 50px) !important;
        order: 1 !important;
        display: block !important;
    }

    #ClassDetailsModal .clm-header-top .modal-header-text span {
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    #ClassDetailsModal .clm-header-buttons {
        flex-shrink: 0 !important;
        margin-right: 0 !important;
        gap: 8px !important;
        order: 2 !important;
        width: 100% !important;
    }

    #ClassDetailsModal .clm-header-buttons .addtocart-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    #ClassDetailsModal .clm-edge-close-btn {
        top: 12px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }

    #ClassDetailsModal .clm-edge-close-btn i {
        font-size: 12px !important;
    }

    /* ClassDetailsModal Filter Section Mobile */
    #ClassDetailsModal .clm-filter-section {
        padding: 10px 12px !important;
    }

    #ClassDetailsModal .clm-filter-label {
        font-size: 10px !important;
        margin-bottom: 3px !important;
    }

    #ClassDetailsModal .clm-filter-input,
    #ClassDetailsModal .clm-date-input,
    #ClassDetailsModal .clm-age-input {
        height: 40px !important;
        font-size: 13px !important;
    }

    #ClassDetailsModal .clm-filter-input::placeholder {
        font-size: 12px !important;
    }

    #ClassDetailsModal .clm-search-icon {
        font-size: 11px !important;
        left: 8px !important;
    }

    #ClassDetailsModal #clm-class-search {
        padding-left: 28px !important;
    }

    #ClassDetailsModal .clm-filter-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    #ClassDetailsModal .clm-btn-apply {
        flex: 1 1 45% !important;
        font-size: 12px !important;
        padding: 10px 12px !important;
        height: 40px !important;
    }

    #ClassDetailsModal .clm-btn-reset {
        flex: 1 1 45% !important;
        font-size: 12px !important;
        padding: 10px 12px !important;
        height: 40px !important;
    }

    #ClassDetailsModal .clm-results-count {
        flex: 1 1 100% !important;
        margin-top: 4px !important;
        height: 36px !important;
        font-size: 11px !important;
        justify-content: center !important;
    }

    #ClassDetailsModal .clm-date-separator,
    #ClassDetailsModal .clm-age-separator {
        font-size: 11px !important;
    }

    /* CoursesListModal Mobile */
    #CoursesListModal .clm-header-top {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        padding: 12px 50px 12px 12px !important;
        gap: 10px !important;
    }

    #CoursesListModal .clm-header-top .modal-header-text {
        flex: 1 1 100% !important;
        font-size: 14px !important;
        padding-left: 10px !important;
        border-left-width: 3px !important;
        width: calc(100% - 50px) !important;
        order: 1 !important;
        display: block !important;
    }

    #CoursesListModal .clm-header-top .modal-header-text span {
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    #CoursesListModal .clm-header-buttons,
    #CoursesListModal .clm-header-top .clm-header-buttons,
    #CoursesListModal .clm-header-top > .clm-header-buttons {
        flex-shrink: 0 !important;
        margin-right: 0 !important;
        gap: 8px !important;
        order: 2 !important;
        width: 100% !important;
    }

    #CoursesListModal .clm-header-buttons .addtocart-btn,
    #CoursesListModal .clm-header-top .clm-header-buttons .addtocart-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    #CoursesListModal .clm-edge-close-btn {
        top: 12px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }

    #CoursesListModal .clm-edge-close-btn i {
        font-size: 12px !important;
    }
}

/* Extra small mobile (400px and below) */
@media screen and (max-width: 400px) {
    /* ClassDetailsModal Extra Small */
    #ClassDetailsModal .clm-header-top {
        padding: 10px 10px 10px 10px !important;
        padding-right: 40px !important;
    }

    #ClassDetailsModal .clm-header-top .modal-header-text {
        font-size: 14px !important;
        padding-left: 8px !important;
    }

    #ClassDetailsModal .clm-header-top .modal-header-text span {
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    #ClassDetailsModal .clm-header-buttons .addtocart-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    #ClassDetailsModal .clm-edge-close-btn {
        top: 10px !important;
        right: 5px !important;
        width: 28px !important;
        height: 28px !important;
    }

    #ClassDetailsModal .clm-edge-close-btn i {
        font-size: 11px !important;
    }

    /* ClassDetailsModal Filter Section Extra Small */
    #ClassDetailsModal .clm-filter-section {
        padding: 8px 10px !important;
    }

    #ClassDetailsModal .clm-filter-row {
        gap: 10px !important;
    }

    #ClassDetailsModal .clm-filter-label {
        font-size: 9px !important;
    }

    #ClassDetailsModal .clm-filter-input,
    #ClassDetailsModal .clm-date-input,
    #ClassDetailsModal .clm-age-input {
        height: 36px !important;
        font-size: 12px !important;
    }

    #ClassDetailsModal .clm-btn-apply,
    #ClassDetailsModal .clm-btn-reset {
        font-size: 11px !important;
        padding: 8px 10px !important;
        height: 36px !important;
    }

    #ClassDetailsModal .clm-btn-apply i {
        margin-right: 3px !important;
        font-size: 10px !important;
    }

    #ClassDetailsModal .clm-results-count {
        height: 32px !important;
        font-size: 10px !important;
        padding: 6px 8px !important;
    }

    /* CoursesListModal Extra Small */
    #CoursesListModal .clm-header-top {
        padding: 10px 10px 10px 10px !important;
        padding-right: 40px !important;
    }

    #CoursesListModal .clm-header-top .modal-header-text {
        font-size: 13px !important;
        padding-left: 8px !important;
    }

    #CoursesListModal .clm-header-top .modal-header-text span {
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    #CoursesListModal .clm-header-buttons,
    #CoursesListModal .clm-header-top .clm-header-buttons,
    #CoursesListModal .clm-header-top > .clm-header-buttons {
        margin-right: 0 !important;
        width: 100% !important;
    }

    #CoursesListModal .clm-header-buttons .addtocart-btn,
    #CoursesListModal .clm-header-top .clm-header-buttons .addtocart-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    #CoursesListModal .clm-edge-close-btn {
        top: 10px !important;
        right: 5px !important;
        width: 28px !important;
        height: 28px !important;
    }

    #CoursesListModal .clm-edge-close-btn i {
        font-size: 11px !important;
    }
}