/* Add this CSS to your stylesheet */
.custom-ymm-wrapper-for-home-page {
    margin-bottom: 20px;
}
.ymm-form-container select, .ymm-form-container button {
    height: 100%;
    margin: 0;
}

.ymm-form-container select {
    padding: 0.5rem;
}

.ymm-product-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.ymm-product-item:hover {
  transform: scale(1.05); /* Increase the size on hover */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}
            /* Style the first div with the link */
    .link-div {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
.ymm-mb-5{
    margin-bottom: 25px;
}

.ymm-mt-5{
    margin-top: 25px;
}

    .link-div a {
        display: inline-block;
        padding: 10px 20px;
        background-color: #007BFF; /* Blue background color */
        color: #fff; /* White text color */
        text-decoration: none;
        border-radius: 5px; /* Rounded corners */
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    .link-div a:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

    /* Style the second div with the text */
    .text-div {
        text-align: center;
        margin-bottom: 20px;
        font-family: sans-serif;
    }

/* Modal Wrapper Styles */
.modal-wrapper, .loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    cursor: pointer;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100; /* Ensure the modal is on top */
}

/* Modal Styles */
.ymm-modal {
    background-color: #fff; /* White background */
    min-width: 600px;
    padding: 2rem; /* Add padding for content spacing */
    position: fixed;
    left: 50%;
    display: none;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Add a shadow for depth */
    z-index: 101; /* Slightly higher z-index to be on top of the wrapper */
    border-radius: 10px;
}

.ymm-modal .add-to-garage-heading {
    margin-bottom: 20px;
}

.ymm-modal .ymm-form-container{
    flex-direction: column;
}

.ymm-modal .ymm-form-select {
    margin-bottom: 14px;
}

.ymm-modal .ymm-form-select select {
    height: 46px;
    padding: 0.5rem;
}

.ymm-modal .ymm-button-holder {
   justify-content: center;
}

.ymm-modal .close-icon svg {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.navPages-action {
    cursor: pointer;
}

/* Modal Content Styles (for better styling control) */
.modal-content {
    max-width: 100%; /* Ensure content doesn't overflow */
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}


.ymm-button-holder{
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

/* Add more table styling as needed */

/* Close button (if you want to add one) */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}


.ymm-container {
    max-width: 1280px;
    margin: 0 auto;
}

.ymm-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.ymm-form {
    margin-bottom: 40px;
}

.ymm-form-container {
    display: flex;
    gap: 1%;
}

.ymm-form-select {
    flex: 1;
}

.ymm-select {
    width: 100%;
    height: 50px;
}

.ymm-filters-products {
    display: flex;
    column-gap: 3%;
}

.ymm-filters {
    flex: 1 0 30% ;
}

.ymm-products-wrapper {
    flex: 1 0 67%;
}

.ymm-products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.ymm-products a {
    display: flex;
    text-decoration: none;
}

.ymm-product-item {
    border: 1px solid #eae9e9;
}

.ymm-product-thumbnail-wrapper {
    height: 250px;
}

.ymm-product-thumbnail {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.add-vehicle-to-garage-button-wrapper button{
    margin-bottom: 0;
}

.ymm-product-name-price {
    padding: 0.5rem;
}

.add-to-garage-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    
}

.add-to-garage-heading__heading {
    font-weight: 700;
}

    /* CSS for styling the tree */
    .ymm-categories .tree {
        list-style-type: none;
        padding-left: 0;
        margin-left: 0;
    }

     .ymm-categories .tree li {
        margin: 0.5rem 0;
        margin-left: 15px;
    }
    
    .ymm-brands-wrapper label {
        padding-left: 0.5rem;
        cursor: pointer;
    }
    
    .ymm-categories .tree ul, .ymm-categories .tree ul ul {
        padding-left: 0.9rem;
    }

    /* CSS for tree node expand/collapse buttons */
    .expand-btn::before {
        content: '▶';
        cursor: pointer;
    }

    .collapse-btn::before {
        content: '▼';
        cursor: pointer;
    }
    /* CSS to hide child nodes by default */
    .hidden {
        display: none;
    }


    .d-flex{

        display: flex;

    }

    .flex-wrap{
        flex-wrap: wrap;
    }

    .align-items-center{
        align-items: center;
    }

    .text-align-center{
        text-align: center;
    }

    /* Style for the radio input */
    input[type="radio"] {
        display: none; /* Hide the radio input */
    }

    /* Style for the label (custom radio button) */
    input[type="radio"] + div {
        border: 2px solid green;
        border-radius: 10px;
        margin: 5px;
        font-size: 12px;
    }
    
    input[type="radio"] + div label div{
        cursor: pointer;
        padding: 10px;

    }


    /* Style for the parent div when the radio input is checked */
    input[type="radio"]:checked + div {
        background: green;
        color: white;
    }

.garage-wrapper-wrapper{
    border-radius: 10px;
    padding: 20px;
    z-index: 101;
    position: absolute;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    background: white;
    min-width: 300px;
    animation: scaleAnimation 0.5s ease-in-out; /* Use the defined animation, set the duration and timing function */


}

.justify-content-between{
    justify-content: space-between;
}


.ymm-title, .add-to-garage-heading__heading {
    margin: 0;
}


/* Define the keyframes for the scale animation */
@keyframes scaleAnimation {
    0% {
        transform: scale(0); /* Start with no scale (hidden) */
    }
    100% {
        transform: scale(1); /* End with full scale (original size) */
    }
}

.ymm-mt-1{
    margin-top: 5px;
}

.ymm-mt-2{
    margin-top: 10px;
}

.ymm-mt-3{
    margin-top: 15px;
}

.ymm-mb-1{
    margin-bottom: 5px;
}

.ymm-mb-2{
    margin-bottom: 10px;
}

.ymm-mb-3{
    margin-bottom: 15px;
}

.cursor-pointer{
    cursor: pointer;
}
.ymm-text-right{
    text-align: right;
}
.ymm-italic{
    font-style: italic;
}
hr{
    opacity: 0.5;
    margin-top: 10px;
    margin-bottom: 10px;
}
.ymm-text-center{
    text-align: center;
}
.ymm-justify-content-between{
    justify-content: space-between;
}


.ymm-change-or-clear, .ymm-form-search-page{
    align-items: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 10px;
}

.ymm-change-or-clear h3{
    margin: 0;
    font-weight: 700;
}

.ymm-change-or-clear {
    margin: 0;
}

.change-clear-btn-wrapper {
    gap: 10px;
}

.change-clear-btn-wrapper button {
    margin: 0;
}


.ymm-justify-content-around{
    justify-content: space-around;
}

.checkbox-label-wrapper {
    display: flex;
    align-items: center; 
}

.ymm-link {
   cursor: pointer; 
}

.ymm-product-price h4{
    margin: 0;
}



        .loadingText {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        /* Styles for the "Loading" SVG (you can replace this with your SVG) */
        .loadingIcon {
            width: 50px;
            height: 50px;
        }