.related_product {
    display: flex;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
}

.accessories-products-cart .related_product .rel_image img {
    width: auto;
    height: 128px;
}

.accessories-products .related_product .rel_image img {
    width: auto;
    height: 98px;
    margin-top: 0px;
}

.accessories-products-modal .modal {
    right: unset;
    bottom: unset;
    width: 100vw;
    height: 100vh;
}


.accessories-products-cart .related_product .product-price-and-shipping a {
    color: #000;
    font-weight: bold;
    padding-top: 25px;
    display: block;
    font-size: 14px;
}

.accessories-products .related_product .subtitle{
    font-weight: normal;
    display: block;
    margin-top: 10px;
}

.accessories-products-cart .related_product {
    border: 1px solid var(--links-bg-color);
}
.check_product, .rel_image{
    margin-right: 5px;
}

.check_product {
    position: absolute;
    bottom: 8px;
    right: 10px;
    width: 23px;
    height: 23px;
    opacity: 0.0000001;
    z-index: 2;
}

.accessories-products-cart .check_product {
    bottom: 18px;
    left: 102px;
}

.accessories-products-cart .prod_price {
    position: absolute;
    right: 45px;
    bottom: 10px;
    font-weight: bold;
}

@media(max-width: 768px){

    #cart #_mobile_cart .accessories-products-cart .prod_price {
        position: absolute;
        /*  left: 18px;
          bottom: -31px !important;*/
        font-weight: bold;
    }
    #product  #_mobile_cart .accessories-products-cart .prod_price {
        position: absolute;
        left: -30px;
        bottom: -6px !important;
        font-weight: bold;
    }
}

.related_product label {
    text-indent: -3000px;
    position: absolute;
    bottom: 0px;
    right: 10px;
    width: 22px;
    height: 22px;
    border: 1px solid var(--links-bg-color);
    border-radius: 4px;
}

.accessories-products-cart .related_product label {
    bottom: 10px;
    left:298px;
}
@media(max-width:768px){
    .accessories-products-cart .related_product label {
        bottom: 5px;
        left: 290px!important;
    }
}

.related_product label::after {
    content: '';
    display: block;
    width: 13px;
    height: 7px;
    border-bottom: 2px solid var(--primary-bg-color);
    border-left: 2px solid var(--primary-bg-color);
    -webkit-transform: rotate(-45deg) scale(0);
    transform: rotate(-45deg) scale(0);
    transition: transform ease 0.25s;
    will-change: transform;
    position: absolute;
    top: 6px;
    left: 3px;
}
.check_product:checked ~ label {
    background: var(--links-bg-color);
}
.check_product:checked ~ label::after {
    -webkit-transform: rotate(-45deg) scale(1);
    transform: rotate(-45deg) scale(1);
}

.accessories-products .product-price-and-shipping a:not(.ac-quick-view) {
    color: #000;
    font-weight: bold;
    margin-top: 22px;
    display: inline-block;
}

.accessories-products .product-price-and-shipping a.ac-quick-view {
    display: inline;

}
.accessories-products .product-price-and-shipping a.ac-quick-view i{
    color: var(--links-bg-color);
    font-size: 20px;
}

.accessories-products .prod_price{
    position: absolute;
    right: 40px;
    color: #000;
    font-weight: bold;
}

.accessories-products .prod_price .old-price,
.accessories-products-cart .prod_price .old-price {
    text-decoration: line-through;
    font-weight: normal;
}
.accessories-products {
    clear:both;
    margin-top: 0px;
}
@media (max-width: 768px) {
    .accessories-products{
        float: right;
        width: 100%;
        display: none;
    }
    .related_product {
        width: 210% !important;
        flex-direction: row;
    }
}
.accessories-products .prod_price {

    right: 47px!important;

}
.accessories-products .related_product label {

    right: 16px!important;

}

.accessories-products .related_product {
    display: flex;
    position: relative;
    border: 1px solid #707070!important;
    border-radius: 27px!important;
    margin-bottom: 5px;
    background-color: #FFF;
}
@media (min-width: 769px) {
    .accessories-products .related_product {
        width: 100%;
    }

}
.accessories-products .related_product label {
    text-indent: -3000px;
    position: absolute;
    bottom: 0px;
    right: 10px;
    width: 21px;
    height: 23px;
    border: 1px solid var(--links-bg-color);
    border-radius: 0px;
}

.rel_image {
    margin-right: 16px!important;
}
.rel_image .thumbnail img {
    margin-top: 22px;
    margin-left: 6px;
    border-radius: 27px!important;
}
.accessories-products .product-price-and-shipping a.ac-quick-view i {
    display: none;
}

.related_product {
    display: flex;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 10px;
}

.rel_image {
    text-align: center; 
}

.rel_image img {
    width: 100%; 
    max-width: 100px; 
    height: auto;
}

.price, .old-price {
    display: block; 
}

.old-price {
    text-decoration: line-through; 
    color: #777; 
}

label[for^="checkbox-"] span {
    display: inline-block;
    cursor: pointer;
}

.accessories-products .product-price-and-shipping {
    padding-left: 0;
}

.accessories-products .product-price-and-shipping > a {
    margin-top: 9px !important;
}

.accessories-products .prod_price {
    bottom: 10px;
    margin-bottom: 0;
    height: min-content;
    width: fit-content;
    display: flex;
}

.accessories-products .check_product {
    display: block;
}


/*Toppings begins*/
.toppings-container {
    background-color: black;
    color: white;
    padding: 20px 0 0;
    border-radius: 15px;
    width: 90%;
    margin: 0 auto;
}

.toppings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toppings-container .header-texts {
    flex: 1;
}

.toppins-progress-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toppings-container .savings {
    display: flex;
    justify-content: space-between;
    margin: 5px;
}

.toppings-container .savings-title {
    text-align: center;
    margin: 0 5px;
    color: var(--brand-color);
}

.toppings-container .savings-title:first-child {
    text-align: start;
    margin: 0 5px 0 0;
}

.toppings-container .savings-title:last-child {
    text-align: end;
    margin: 0 0 0 5px;
}

.toppings-progress-bar {
    position: relative;
    width: 97%;
    height: 10px;
    background-color: white;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.toppings-progress-bar-inner {
    height: 100%;
    background-color: var(--brand-color);
    border-radius: 5px;
    position: absolute;
    transition: 200ms linear;
}

.toppings-progress-circle {
    top: -5px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    display: block;
    position: relative;
    box-shadow: 0px 0px 7px 3px rgba(0, 0, 0, 0.3);
}

.toppings-progress-circle.active {
    background-color: var(--brand-color) !important;
}

.toppings-products-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-height: 55vh;
    overflow-y: scroll;
    border-radius: 5px;
    overflow-x: hidden;
    padding-right: 20px;
}

.toppings-container .topping-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc((100% / 2) - 10px);
    flex-direction: column;
    height: fit-content;
}

.toppings-footer-text {
    width: fit-content;
}

.toppings-footer-text > a {
    color: var(--brand-color) !important;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: underline !important;
}
  

@media (max-width: 768px) {
    .toppings-container .topping-box {
        width: 97%;
        margin: 0 auto;
    }

    .toppings-header {
        flex-direction: column;
    }

    .toppings-subtitle {
        margin: 16px 0 !important;
    }      

    .toppings-container {
        width: 100%;
    }

    .toppings-container .product {
        width: 100%;
    }

    .toppings-progress-bar {
        width: 97%;
    }

    .toppins-progress-box {
        width: 95%;
    }

    .toppings-container .savings {
        width: 100%;
    }

    .toppings-footer {
        margin-top: 10px !important;
        width: 100%;
    }

    .toppings-cart {
        width: 90% !important;
    }      

    .toppings-container .topping-cover {
        margin-right: 0px !important;
        margin-left: 0px;
    }

    .toppings-container .product {
        padding: 5px 10px 5px !important;
        width: 100% !important;
    }

    .toppings-products-box {
        height: 55%;
    }

    .quickview .modal-dialog {
        width: 100% !important;
    }

    .modal-dialog-centered {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        height: calc(100vh - 70px);
        position: absolute;
    }

    .quickview .modal-dialog {
        margin: 70px auto;
    }

    .modal.quickview {
        background: none !important;
        overflow-y: hidden;
    }

    .modal-backdrop {
        opacity: 0 !important;
    }      
}

#product .quickview .modal-body {
    padding: 0px 20px 20px 20px;
}


.toppings-title {
    color: white !important;
    font-weight: normal;
}

.toppings-title > strong {
    color: var(--brand-color) !important;
    font-size: 30px;
    font-weight: bold;
}
  

.toppings-container .product {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 20px 0 10px;
    width: 90%;
}

.toppings-container .topping-cover{
    height: auto;
    grid-column: 1 / 2;
    grid-row: 1 / 5;
    margin-right: 20px;
    border-radius: 20px;
    width: 98px;
    overflow: hidden;
}

.toppings-container .topping-image-carousel:not(.active) {
    display: none;
}

.toppings-container .product-title {
    font-size: 20px;
    font-weight: bold;
    color: black;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    text-align: left;
}

.toppings-container .price:not(.active) {
    display: none;
}

.toppings-container .splide__pagination {
    position: relative;
    bottom: 0;
    padding: 0;
}

.splide__pagination button.is-active {
    background-color: var(--brand-color);
}

.toppings-container .product-title:not(.active) {
    display: none;
}

.toppings-container .product-subtitle {
    font-weight: normal;
    font-size: 12px;
}

.toppings-container .price {
    display: flex;
    justify-content: flex-start;
    color: var(--brand-color);
    font-size: 17px;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-items: baseline;
}

.toppings-container .active-price {
    color: var(--brand-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 17px;
}

.toppings-container .before-price {
    color: #999;
    font-size: 9px;
}

.toppings-container .qty-toppings {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 72px;
    height: 28px;
    background-color: #eee;
    border-radius: 25px;
}

.toppings-bottom-row {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toppings-container .qty-button-toppings {
    background-color: #eee;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}

.toppings-container .qty-button:hover {
    background-color: #ddd;
}

.toppings-container .qty-no-toppings {
    width: 40px;
    text-align: center;
    font-size: 13px !important;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.toppings-container .circle {
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    margin-left: 10px;
}

.toppings-container .circle-color-picker {
    height: 25px;
    background-image: linear-gradient(to bottom, #fff, #fff), 
                      conic-gradient(from 0.25turn, #f00, #ff7000 0.15turn, #ffe900 0.24turn, 
                                     #0f0 0.38turn, #00f6ff 0.56turn, #0010ff 0.71turn, 
                                     #c0f 0.89turn, #ff007a);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border: 2px solid transparent;
    transition: 250ms linear width;
    margin: 0 auto;
}

.toppings-container .circle-color-picker:not(.active) {
    width: 25px;
    border-radius: 13px;
}

.toppings-container .circle-color-picker.active {
    border-radius: 13px;
    width: 100%;
    max-width: 300px;
    max-width: 0 auto;;
}

.toppings-container .circle-color-picker.active.switch {
    width: 70px;
    gap: 20px;
}

.toppings-container .circle-color-picker.active.switch .circle-color {
    margin: 0 3px; 
} 

.toppings-container .circle-color {
    width: 17px;
    height: 17px;
    cursor: pointer;
    border-radius: 50%;
}

.toppings-container .circle-color-picker:not(.active) .circle-color.active {
    display: block;
    left: 50%;
    transform: translate(-50%, -50%) !important;
}

.circle-color-picker .circle-color {
    position: relative;
    top: 50%;
    transform: translateY(-50%);

}

.circle-color-picker.active .circle-color {
    display: block;
}

.circle-color-picker.active {
    display: flex;
    justify-content:space-between
}

.toppings-container .circle-color-picker:not(.active) .circle-color:not(.active) {
    display: none;
}

.toppings-container .add-button {
    background-color: var(--brand-color);
    color: black;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    width: 72px;
    height: 28px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease; /* Add transition for smooth animation */
}

.toppings-container .add-button.disabled, 
.toppings-container .add-button.disabled:hover,
.toppings-container .toppings-cart.disabled,
.toppings-container .toppings-cart.disabled:hover {
    cursor: not-allowed !important;
	background: #c3c3c3 !important;
}

.toppings-container .add-button.active {
    background-color: gray; /* Change background color for active state */
    color: white; /* Change text color for active state */
}

.toppings-cart {
    background-color: var(--brand-color) !important;
    color: black !important;
    font-weight: bold;
    width: 373px;
    height: 50px;
    border-radius: 25px;
    font-size: 15px;
}

.toppings-footer {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.toppings-container .attribute-select {
    border: none;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-bottom: 1px solid;
    cursor: pointer;
    grid-column: 2 / 2;
    padding-left: 0;
    position: relative;
    bottom: 7px;
    width: fit-content;
    padding-right: 0;
}

.toppings-container .attribute-select:not(.active) {
    display: none;
}

.toppings-container .attribute-select ~ .product.title {
    grid-row: 1 / 1;
}

.toppings-container .attribute-select {
    grid-row: 2 / 2;
}

.toppings-container .attribute-select ~ .price {
    grid-row: 3 / 3;
}

.toppings-container .attribute-select ~ .toppings-bottom-row {
    grid-row: 4 / 4;
}

.toppings-container .attribute-select ~ .topping-cover {
    grid-row: 1 / 5;
}

/*Custom variant dropdown starts */
.custom-select-wrapper:not(.active) {
    display: none;
}

.custom-select-wrapper {
    border: none;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    grid-column: 2 / 2;
    padding-left: 0;
    position: relative;
    bottom: 7px;
    width: fit-content;
    padding-right: 0;
    display: flex;
    align-items: center;
  }

  .custom-select-wrapper .triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 11px solid #3498db;
    margin-left: 10px;
    transition: ease 100ms;
  }

  .custom-select-wrapper .triangle.active {
    transform: rotate(180deg);
  }
  
  .toppings-container .custom-select-toppings {
    position: relative;
    display: inline-block;
    width: 100%;
    border: none;
  }
  
.custom-select-trigger {
    display: block;
    cursor: pointer;
    color: black;
}
  
  .selected-option {
    display: inline-block;
    color: black;
    font-weight: bold;
  }

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    background-color: #fff;
    z-index: 1;
    color: black;
    border-radius: 5px;
    overflow-y: scroll;
    max-height: 84px;
  }
  
  .custom-option {
    padding: 5px 2px;
    cursor: pointer;
  }
  
  .custom-option:hover {
    background-color: #f0f0f0;
  }
  
  .custom-select-toppings.open .custom-options {
    display: block;
  }
  
/*Custom variant dropdown ends */


.toppings-container .product-toppings-item:not(.active) {
    display: none;
}

.toppings-container .product-toppings-item {
    padding: 5px 0 10px;
    width: 90%;
}

.toppings-container .prettydropdown > ul {
    border: 1px solid gray !important;
}

.toppings-container .prettydropdown > ul > li {
    height: 44px;
    line-height: 44px;
    padding-right: 25px;
}

.toppings-container .prettydropdown.arrow > ul > li.selected::after {
    right: 0;
}

.toppings-container .product-customization-item:not(.active) {
    display: none;
}

.toppings-container .product-customization {
    width: 90%;
}

.toppings-container .product-customization .product-message {
    height: 46px;
}

.toppings-container .product-customization .product-customization-item {
    margin: 0px 0 15px;
}

.toppings-footer-text > a {
    cursor: pointer;
}

.toppings-container ::-webkit-scrollbar {
    width: 12px;
}

.toppings-container ::-webkit-scrollbar-track {
    background: #2E2E2E;
    border-radius: 10px;
}

.toppings-container ::-webkit-scrollbar-thumb {
    background-color: var(--brand-color);
    border-radius: 10px;
    border: 2px solid #2E2E2E;
}

/* For Firefox */
.toppings-container * {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-color) #2E2E2E;
}