/* 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;
    cursor: pointer;
}

.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: rgba(149,157,165,.2) 0 8px 24px /* 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: 50px; /* 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: 2%;
}

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

.ymm-filters .ymm-brands-wrapper {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px;
}

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

.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 #f5f5f5;
    border-radius: 5px;
}

.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;
    height: 60px !important;
}

.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.8rem 0;
        margin-left: 15px;
        display: flex;
        align-items: self-start;
        line-height: 20px;
    }
    
    .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{
    padding: 20px;
    z-index: 101;
    position: absolute;
    background: #fff;
    border: 1px solid #dadada;
    max-width: 300px;
    min-width: 300px;
    animation: scaleAnimation 0.5s ease-in-out; /* Use the defined animation, set the duration and timing function */
    margin-right: -10px;
}

.garage-wrapper-wrapper .clear-garage-span {
    font-size: 14px;
    color: #000000;
    text-decoration: underline;
}

.garage-wrapper-wrapper .clear-garage-span:hover,.garage-wrapper-wrapper .clear-garage-span:focus {
     text-decoration: none;
}

.garage-wrapper-wrapper:before{
    border: 10px inset transparent;
    border-bottom: 10px solid #dadada;
    bottom: 100%;
    content: "";
    display: block;
    height: 0;
    position: absolute;
    right: 11px;
    width: 0;
}

.garage-wrapper-wrapper:after{
    border: 8px inset transparent;
    border-bottom: 8px solid #fff;
    bottom: 100%;
    content: "";
    display: block;
    height: 0;
    position: absolute;
    right: 13px;
    width: 0;
}

.each-vehicle-in-garage {
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
}

.each-vehicle-in-garage:last-child{
    border: 1px solid #0D82CC;
    border-radius: 4px;
    box-shadow: 0 0 8px 4px rgba(32,136,224,.35);
}

.each-vehicle-in-garage .ymm-icon-danger svg {
    width: auto;
    height: auto;
    stroke: #999999;
}

.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;
}

.verify-fitment {
    display: flex;
    flex: auto;
    flex-direction: row;
    font-size: 18px;
    column-gap: 16px;
}

.verify-fitment .cm_icon-times {
    background-color: #dc143c;
    fill: #fff;
    stroke: #fff;
    width: auto;
    height: auto;
    margin: 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 4px; 
    stroke-width: 4px;
}
.verify-fitment .verify-fitment_fitment {
    line-height: 28px;
}

.verify-fitment_title {
    font-size: 20px;
    color: #dc143c;
    text-transform: uppercase;
    margin-bottom: 4px;
     font-weight: 700;
}

.verify-fitment_fitment_fit .cm_icon.cm_icon-check{
    background-color: #32cd32;
    fill: #fff;
    stroke: #fff;
    width: auto;
    height: auto;
    margin: 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    padding: 4px;
}

.verify-fitment_fitment_fit .verify-fitment_title {
    font-size: 20px;
    color: #32cd32;
}

.verify-fitment_body strong {
    font-weight: 400;
    margin-right: 6px;
    font-size: 18px;
    line-height: 26px;
    color: #a3a3a3;
    display: inline-block;
}

.verify-fitment_body .ymm-link {
    color: #0d98ba;
}


.verify-fitment_body .verify-fitment_compatibl a {
    color: #0d98ba;
}


.productView-details .ymm-form-container {
    row-gap: 1rem;
    flex-wrap: wrap;
}

.productView-details .ymm-form-select {
    flex: 1 0 100%;
}

.home-layout-4 .productView-details .ymm-select {
    height: 50px;
}

.home-layout-4 .productView-details .ymm-button-holder {
    width: 100%;
}

.home-layout-4 .productView-details .ymm-button-holder .ymm-go-btn,
.home-layout-4 .productView-details .ymm-button-holder .ymm-clear-btn{
    flex: 1 0 48%;
}

.home-layout-4 .productView-details .ymm-button-holder .button {
    height: 50px;
    width: 100%;
    color: #fff !important;
}
.home-layout-4 .ymm-button-holder .button[disabled] {
  color: #979797 !important;  
}

.productView-details .custom-ymm-form-body h4 {
    margin-top: 0;
    color: #0d98ba;
    font-weight: 600;
    text-transform: uppercase;
}

@media(max-width:767px){
    
    .ymm-modal {
      padding: 24px;
      min-width: 396px;
    }
    
    .ymm-modal h3 {
        font-size: 32px;
    }
    
   .garage-wrapper-wrapper {
        max-width: 100%;
        min-width: 100%;
        left: 0 !important;
        right: 0 !important;
        margin: 0;
    }
    
    .garage-wrapper-wrapper:after,  .garage-wrapper-wrapper:before {
        content: none;
    }
}

@media(max-width:567px){
    .ymm-modal h3 {
        font-size: 26px;
    }
    
    .ymm-modal .ymm-form-select {
        margin-bottom: 0;
    }
}

@media(max-width:567px){
    .ymm-modal {
        min-width: 360px;
    }
}
