.MultiCarousel { float: left; overflow: hidden; width: 100%; }
.gs-data{position:relative; width:100%;float:left; }
.MultiCarousel .gs-slider { transition: 1s ease all;-webkit-transition: 1s ease all; float: left; }
.gs-data .leftLst, .gs-data .rightLst { position:absolute; border-radius:5px;top:20%;font-weight: 600;font-size: 20px;padding: 3px 5px; }
.gs-data .leftLst { left:-15px; }
.gs-data .rightLst { right:-15px; }
.gs-data .leftLst.over, .gs-data .rightLst.over { display:none;pointer-events: none; background:#ccc; }
                    
.gs-icon-title {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
    min-height: 28px;
    text-overflow: ellipsis;
}
.gs-icons-container {
    min-height:197px;
}
.gs-category-icon h2, .gs-category-icon h3 {
    margin: 0;
    font-size: 14px;
    margin-top: 20px;
    min-height: 28px;
    color: #000;
}

.gs-icon .class-level{
    color: #333333;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    margin-top:5px;
}

#gs-class .class-level{
	margin-top:2px;
}
#gs-class .gs-icon-image-wrapper{
	padding:0px 5px;
}
#gs-class .gs-icon-image-wrapper img{
	width:auto;
	height:83px;
}

.gs-icon .capacity {
    color: #333333;
    width: 100%;
    display: block;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    font-size: 12px;
    font-weight: 600;
}

/* Guided Search Container */
.gs-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.dimension-header-text{
    color: #3D3D3D;
    font-size: 14px;
    font-style: italic;
}

.gs-container {
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.guided-search {
    display: -webkit-flex; /* Safari */
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 10px;
}

.gs-dimensions-wrapper {
    margin-top:15px;
    display: flex;
    display: -webkit-flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    align-items: center;
    vertical-align: baseline;
    border-bottom: 1px solid #e5e5e5;
}

.gs-dimensions {
    display: flex;
    display: -webkit-flex;
    gap: 15px;
}

.gs-btn {
    color: #3d3d3d;
    cursor: pointer;
    padding: 15px 0;
    position: relative;
    white-space: nowrap;
    margin-right: 42px;
    border-radius: 4px;
    transition: color 0.3s;
}

.gs-btn--is-selected {
    color: #005F9E;
}

.gs-btn--is-selected:before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 5px;
    bottom: -2px;
    background-color: #4c94ce;
}

.gs-btn--is-selected:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-top: 12px solid #4c94ce;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.gs-btn .gs-selected-count {
    display: inline-block;
    color: #fff;
    background-color: #2971ea;
    border-radius: 50%;
    font-size: 14px;
    text-align: center;
    width: 20px;
}

.gs-slider {
    display: -webkit-flex; /* Safari */
    display: flex;
    gap: 15px;
    padding-inline: 32px;
    overflow-x: auto;
    -webkit-scroll-snap-type: x mandatory; /* Safari */
    scroll-snap-type: x mandatory;
    -webkit-scroll-behavior: smooth; /* Safari */
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
    height: auto;
}

.gs-slide {
    padding-top: unset;
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
    transition: border 0.3s;
}

.gs-icon-inner:hover {
    border: 1px solid #4c94ce;
    border-radius: 8px;
}

.gs-slide.disabled .gs-icon {
    cursor: not-allowed;
}
/* Category Icons */
.gs-category-icon {
    width: 190px;
    text-align: center;
}

.gs-icon{
    width: 100%;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    position: relative;
    min-height: 92px;
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, .1);
    box-shadow: 0 0 15px rgba(0, 0, 0, .1);
    padding-top: 0%;
    background-color: #fff;
    border-radius: 12px;
}

.gs-icon-inner {
    position: relative;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.gs-icon--is-selected .gs-icon-inner {
    border-color: #336600;
}

.gs-icon-image-wrapper {
    padding:5px;
}

.gs-icon-image-wrapper img {
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 8px;
}

.gs-icon-image{
    -o-object-fit: contain;
    object-fit: contain;
}
.tide-width-full {
    width: 100%;
}

.tide-padding-1 {
    padding: 1rem 0rem;
}
.tide-margin-top-2 {
    margin-top: 2rem;
}
.green-check {
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 25px; 
    height: 20px; 
    background: white;
    border-radius: 50%;
    padding: 2px;
    font-size: 16px;
    color: #336600;
}


/* Arrows for Slider Navigation */
.gs-arrow-wrap {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

.gs-arrow {
    background: white;
    border: none;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    font-size: 18px;
    color: #005f9e;
    transition: color 0.3s;
}

.gs-arrow:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Show All Button */
.gs-dimension-icons__show-all {
    /* margin-top: 10px; */
    width: auto;
    float: left;
}

.show-all {
    cursor: pointer;
    color: #005f9e;
    padding: 5px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.show-all:hover {
    background-color: transparent;
}

/* Modal Background */
.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Keep semi-transparent background */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal Container */
.modal-container {
    background-color: white;
    max-width: 50%; /* Default for large screens */
    width: 100%; /* Ensure it takes full width based on screen size */
    padding: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    -webkit-overflow-scrolling: touch; /* Safari */
}

/* Modal Header Styling */
.gs-placeholder .modal-title {
    font-size: 20px;
    color: inherit;
}
.modal-guided-search {
    display: -webkit-flex; /* Safari */
    display: flex;
    -webkit-flex-wrap: wrap; /* Safari */
    flex-wrap: wrap;
    gap: 16px; /* Ensure spacing between elements */
    justify-content: flex-start;
    padding: 16px;
    margin-top:20px;
    box-sizing: border-box; /* Ensure padding and borders don't cause overflow */
}

.modal-guided-search .gs-slide {
    -webkit-flex: 1 1 calc(33.33% - 16px); /* Safari */
    flex: 1 1 calc(33.33% - 16px); /* Adjust width to 33% with gap accounted */
    max-width: calc(33.33% - 16px);
    box-sizing: border-box; /* Include padding and borders in size */
    display: -webkit-flex; /* Safari */
    display: flex;
    -webkit-flex-direction: column; /* Safari */
    flex-direction: column;
    -webkit-align-items: center; /* Safari */
    align-items: center;
    padding: 10px; /* Add padding for spacing consistency */
}

/* .modal-guided-search .gs-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */

.modal-guided-search .gs-icon-image-wrapper img {
    max-width: 100%; /* Make the image responsive */
    border-radius: 8px; /* Optional: Rounded corners for images */
}

.modal-container .dimension-header-text {
    color: #3D3D3D;
    font-size: 16px;
    font-style: italic;
    position: absolute;
    z-index: 10;
    background-color: white;
    width: 100%;
    padding-bottom: 10px;
}
.modal-guided-search .gs-icon-title {
    margin-top: 8px; /* Space above the title */
    font-size: 14px;
    text-align: center; /* Center align titles */
    color: #333; /* Optional: Darker text color */
}

@supports (-webkit-touch-callout: none) { /* Safari-only styles */
    .modal-guided-search {
        gap: 0; /* Disable gap in Safari */
    }
    .modal-guided-search .gs-slide {
        margin-right: 16px; /* Add spacing manually */
        margin-bottom: 16px; /* Add vertical spacing */
    }
    .modal-guided-search .gs-slide:nth-child(3n) {
        margin-right: 0; /* Remove margin for last element in row */
    }
}

/* Responsive Design */
@media (min-width: 1201px) and (max-width: 1600px) {
    .modal-guided-search .gs-slide {
        -webkit-flex: 1 1 calc(33.33% - 16px); /* Safari */
        flex: 1 1 calc(33.33% - 16px); /* 3 items per row for medium screens */
        max-width: calc(33.33% - 16px);
    }
    .modal-container {
        max-width: 75%;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .modal-guided-search .gs-slide {
        -webkit-flex: 1 1 calc(50% - 16px); /* Safari */
        flex: 1 1 calc(50% - 16px); /* 2 items per row for small screens */
        max-width: calc(50% - 16px);
    }
    .modal-container {
        max-width: 80%;
    }
}
@media (min-width: 601px) and (max-width: 767px) {
    .modal-guided-search .gs-slide {
        -webkit-flex: 1 1 calc(50% - 16px); /* Safari */
        flex: 1 1 calc(50% - 16px); /* 2 items per row for small screens */
        max-width: calc(50% - 16px);
    }
    .modal-container {
        max-width: 95%;
    }
}

@media (max-width: 600px) {
    .modal-guided-search .gs-slide {
        -webkit-flex: 0 1 100%; /* Safari */
        flex: 0 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
    .modal-container {
        max-width: 95%;
    }
    .modal-guided-search {
        margin-top:30px;
    }
}

.modal-background .gs-slider.tide-width-full {
    display: flex;
    flex-wrap: wrap;
    padding-inline: 15px;
}
.modal-background .gs-icon .class-level {
    display: inline;
}
.modal-container .gs-category-icon {
    width: 192px;
}

/* Modal Main Content Section - Add scrolling */
.modal-container main {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling in Safari */
    overflow-y: auto; /* Enables vertical scrolling */
    max-height: calc(70vh - 80px); /* Adjust the height of the main content section based on header/footer */
    flex-grow: 1;
}
.gs-placeholder .modal-close {
    cursor: pointer;
    position: absolute;
    top: 30px;
    right: 20px;
}
.gs-placeholder .modal-container header{
    border-bottom: 1px solid #80808047;
    padding-bottom: 15px;
    color:#353535;
}

/* Footer Button Styling */
.modal-footer-btn {
    cursor: pointer;
    padding: 10px 20px;
    text-align: center;
    border-radius: 2px;
    background-color: #005f9e;
    width: auto;
    float: right;
    color: #fff;
    font-size: 18px;
}

.gs-dimension-category-icon-image {
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .gs-placeholder .modal-container {
        max-width: 90%; /* 90% for smaller screens */
    }
    .gs-btn {
        font-size: 0.9rem;
    }

    .gs-category-icon {
        width: 150px;
    }

    .dimension-header-text {
        font-size: 15px;
    }
    .gs-dimensions-wrapper{
        display:flow-root;
    }
    .gs-header-slot-wrapper{
        width:100%;
        margin-top:20px;
    }
    .gs-dimension-name{
        font-size:16px;
    }
    .inventory-container h1.inventory-title {
        font-size: 24px !important;
    }
}
