.btn {
    font-family: var(--harmonia-sans);
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.custom-services {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0;
    margin: 0;
}

.custom-services-heading {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #F0F0F0;
}

.custom-services-heading__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #222222;
    margin: 0;

}

.custom-services-heading__show-more {
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #00AFFF;
}

.custom-services-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    background-color: #FAFAFA;
    padding: 15px;
}

.custom-services-helper__descr {
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: rgb(34, 34, 34, 0.5);
    margin: 0;
}

.custom-services-helper__btn {
    width: 20px;
    height: 20px;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.custom-services-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

/* ? Custom-services / Services List ?  */

.custom-service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-height: 69px;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease-in-out;
}

.custom-service-list.js-open {
    max-height: 1000px;
}

/* ? Custom-services / Service ?  */

.custom-service {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #F0F0F0;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.custom-service-preview {
    display: flex;
    align-items: center;
    grid-area: 1 / 1 / 3 / 2;
}

.custom-service-preview img {
    pointer-events: none;
}

.custom-service-info {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 6px;
    width: max-content;
}

.custom-service:hover,
.custom-service:focus,
.custom-service:hover .custom-service__add-btn,
.custom-service:focus .custom-service__add-btn {
    border-color: var(--base-color-blue);
}

.custom-service-info__title {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #222222;
    margin: 0;
    grid-area: 1 / 2 / 2 / -1;
}

.custom-service-info .custom-service-info__title:hover  {
    color: #00AEFF;
}

.custom-service-price {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* pointer-events: none; */
}

.custom-service-gift {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1;
    color: #222222;
}

.custom-service-price .product-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1;
    color: #222222;
}

.custom-service-price .product-price .nowrap {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.custom-service-price .product-price .old {
    gap: 4px;
    margin: 0;
}

.custom-service-gift .custom-service-gift__sale-label,
.custom-service-price .product-price.sale-percent .sale {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    height: 15px;
    border-radius: 4px;
    line-height: 1;
    font-weight: 700;
    background-color: #FF445F;
    color: #ffffff;
    padding: 0 4px;
    margin: 0;
}

.custom-service__add-btn {
    display: flex;
    width: 14px;
    height: 14px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 2px;
    border: 1px solid #222222;
    background-color: #ffffff;
    margin: auto 0;
    position: relative;
}

.custom-service__add-btn:before,
.custom-service__add-btn:after {
    position: absolute;
    content: '';
    background-color: transparent;
    border-radius: 2px;
}

.custom-service__add-btn:before {
    width: 5px;
    height: 1px;
    top: 6px;
    left: 1px;
    transform: rotate(45deg);
}

.custom-service__add-btn:after {
    transform: rotate(-45deg);
    width: 7px;
    height: 1px;
    top: 5px;
    left: 4px;
}

.custom-service.js-active .custom-service__add-btn {
    border-color: #00AFFF;
    background-color: #00AFFF;
}

.custom-service.js-active .custom-service__add-btn:before,
.custom-service.js-active .custom-service__add-btn:after {
    background-color: white;
}

.custom-services-heading__show-all {
    display: none;
}




.custom-service-overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.8);
}

.custom-service-popup {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #FFFFFF;
    width: 100%;
    height: calc(100% - 20px);
    max-width: 758px;
    max-height: 800px;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.custom-service-popup--services {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 34px 32px;
}

.custom-service-popup--descriptions {
    padding: 96px 12px 96px 35px;
}

.custom-service-popup__close-btn {
    position: absolute;
    top: 31px;
    right: 26px;
}

.custom-service-popup__close-btn svg {
    width: 32px; 
    height: 32px;
    stroke: #222222;
}

.custom-service-popup__close-btn:hover svg {
    stroke: #00AFFF;
}

.custom-service-overlay.js-active {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.custom-service-popup.js-active {
    opacity: 1;
    visibility: visible;
    z-index: 100;
}



.custom-service-popup-heading__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: #000;
    margin: 0;
}



.tab-indicator-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-indicator-list__indicator {
    width: 16px;
    height: 16px;
    border-radius: 16px;
    background-color: #F0F0F0
}

.tab-indicator-list__indicator.js-active {
    background-color: #00AFFF;
}



.custom-service-popup .custom-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow-y: scroll;
    max-height: 540px;
    scrollbar-width: thin;
    scrollbar-color: #888989 #ffffff;
}

.custom-service-popup .custom-service-list::-webkit-scrollbar {
    width: 4px;
}

.custom-service-popup .custom-service-list::-webkit-scrollbar-track {
    border-radius: 5px;
}

.custom-service-popup .custom-service-list::-webkit-scrollbar-thumb {
    border-radius: 5px;
}

.custom-service-tabs {
    display: flex;
    flex-direction: column;
    gap: 35px;
    height: 100%;
}



.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.controls--services {
    margin: auto 0 0 0;
}

.controls__btn {
    font-size: 14px;
    font-weight: 700;
    line-height: 15px;
    padding: 17px 0 18px;
    border-radius: 4px;
    width: 100%;
    max-width: 217px;
}

.controls__btn--reset,
.controls__btn--back {
    background-color: #ffffff;
    border: 1px solid #222222;
    color: #222222;
}

.controls__btn--continue,
.controls__btn--order {
    background-color: #00AFFF;
    border: 1px solid #00AFFF;
    color: #ffffff;
}

.controls__btn--reset:hover,
.controls__btn--reset:hover,
.controls__btn--back:hover,
.controls__btn--back:focus {
    color: #00AFFF;
    border-color: #00AFFF;
}

.controls__btn--continue:hover,
.controls__btn--order:hover,
.controls__btn--continue:focus,
.controls__btn--order:focus {
    background-color: #ffffff;
    color: #00AFFF;
}

.selected-product {
    width: 100%;
    margin: 42px auto 0;
    padding: 0 0 4px;
}

.confirm-service-list {
    margin: 0 auto;
    padding: 0 7px 0 0;
    list-style: none;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 33px;

    overflow-y: scroll;
    max-height: 328px;
    scrollbar-width: thin;
    scrollbar-color: #888989 #ffffff;
}

.confirm-service-list::-webkit-scrollbar {
    width: 4px;
}

.confirm-service-list::-webkit-scrollbar {
    -webkit-appearance: none;
}

.confirm-service-list::-webkit-scrollbar-track {
    border-radius: 2px;
    background-color: #ffffff;
}

.confirm-service-list::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #888989;
}

.confirm-service,
.selected-product {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #F0F0F0;
}

.confirm-service {
    position: relative;
    max-width: 95%; 
    padding: 0 2px 0 0; 
}

.confirm-service:last-child {
    border-bottom: none;
}

.confirm-service__hide {
    display: none;
}

.cart-table tbody tr.cart-service-row:not(:first-child) td {
    border-top: none;
}

.cart-table tbody tr.cart-service-row td {
    padding: 0;
}

.cart-service-row .custom-services {
    border: none;
}

.cart-service-row .custom-services-heading {
    margin-left: 0;
}

.confirm-service__title,
.selected-product__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.32px;
    color: #222222;
    margin: 0;
}

.confirm-service__price,
.confirm-service__price .product-price,
.confirm-service-gift,
.selected-product__price {
    white-space: nowrap;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.32px;
    color: #222222;
    margin: 0;
    text-align: right;
    padding-bottom: 3px;
}

.confirm-service .custom-service-price {
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    text-align: right;
}

.confirm-service .product-price.sale-percent .sale {
    padding: 3px 2px 1px 2px;
    margin: -6px 0 0 8px;
}

.confirm-service__delete {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 3px;
    right: -35px;
    padding: 0;
    border: none; 
    background-color: transparent;
    cursor: pointer;
}

.confirm-service__delete:before,
.confirm-service__delete:after {
    position: absolute;
    content: '';
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
    background-color: #888989;
}

.confirm-service__delete:before {
    transform: rotate(45deg);
}

.confirm-service__delete:after {
    transform: rotate(-45deg);
} 

.confirm-service__delete:hover::before,
.confirm-service__delete:hover::after {
    background-color: #00AFFF;

}


.custom-service-tabs .total {
    display: flex;
    justify-content: space-between;

    width: 100%;
    align-items: center;

    color: var(--Black, #222);

    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.56px;
    padding: 0 3px;
    margin: auto auto 44px;
}

.total__text,
.total__price {
    margin: 0;
}


.custom-service-description-popup {
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    padding: 0 0 100px;
    max-height: 592px;
    padding: 0 40px 0 0;

    scrollbar-width: thin;
    scrollbar-color: #888989 #ffffff;
}

.custom-service-description-popup::-webkit-scrollbar {
    width: 4px;
}

.custom-service-description-popup::-webkit-scrollbar {
    -webkit-appearance: none;
}

.custom-service-description-popup::-webkit-scrollbar-track {
    border-radius: 2px;
    background-color: #D9D9D9;
}

.custom-service-description-popup::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background-color: #888989;
}

.custom-service-description-popup__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    margin: 0;
}

.custom-service-description-popup__img {
    margin: 24px 0 44px 0;
    border-radius: 12px;
    border: 1px solid var(--Light-grey, #F0F0F0);
}

.custom-service-description-popup__img img {
    border-radius: 12px;
}

.custom-service-description-popup__description {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.32px;
    color: #000;
    margin: 0;
}

.custom-service-description-popup__close-btn {
    position: absolute;
    top: 31px;
    right: 26px;
}

.add-custom-service {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0);

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    padding: 19px 75px 18px 76px;
    border-radius: 4px;
    border: 1px solid #00AFFF;
    background-color: var(--dr-head-blue, #00AFFF);
    color: var(--White, #FFF);
}


.add-custom-service__price {
    display: block;
}

.add-custom-service__price .product-price {
    font-size: 14px;
}

.add-custom-service__price .c-rouble {
    margin: 0 0 0 3px;
}

.add-custom-service:hover {
    background-color: #ffffff;
}

 .add-custom-service:hover * {
    color: #00AFFF;
}

.confirm-bottom-block {
    display: flex; 
    flex-direction: column; 
    margin: auto 0 0;
}

@media(max-width: 1024px) {
    .custom-swiper-button-next,
    .custom-swiper-button-prev {
        opacity: 0;
        width: 1px;
        height: 1px;
    }

    .custom-service-popup {
        width: calc(100% - 119px);
        max-width: 100%;
        max-height: 768px;
    }

    .custom-service-tabs {
        gap: 34px;
    }

    .custom-service-popup--services {
        padding: 40px 20px;
    }

    .custom-service-list {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        max-height: 71px;
    }

    .custom-service-popup .custom-service-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(193px, 1fr));
        gap: 13px;
    }

    .custom-service-popup .custom-service {
        max-width: 100%;
    }

    .custom-service-popup .custom-service {
        min-height: 114px;
    }

    .custom-service .product-price, .custom-service-gift  {
        font-size: 16px;
    }

    .selected-product {
        margin: 22px auto 0;
    }

    .confirm-service-list {
        gap: 34px;
        padding: 0 7px 0 0;
    }

    .custom-service-popup--descriptions {
        width: calc(100% - 120px);
        padding: 95px 12px 96px 20px;
    }

    .custom-service-description-popup__img {
        margin: 24px 0 74px 0;
    }

    .custom-service-description-popup__img img {
        border-radius: 12px;
    }

    .custom-service-description-popup {
        padding: 0 8px 0 0;
    }

    .custom-service-description-popup__description {
        padding: 0 0 30px 0;
    }
}

@media(max-width: 767px) {
    .custom-services-heading__title {
        letter-spacing: 0.24px;
        padding: 0 5px;
    }

    .custom-services-heading__show-more {
        letter-spacing: 0.21px;
        margin: 0;
        padding: 0 5px;
    }

    .custom-service-list {
        max-height: 139px;
    }

    .custom-service {
        padding: 9px 12px 12px;
        border-radius: 12px;
    }

    .custom-service__title {
        max-width: 100%;
        min-height: 32px;
        font-size: 13px;
        font-weight: 700;
        line-height: 16px;
        margin: 0;
    }

    .custom-service-price.product-price {
        font-size: 16px;
    }

    .custom-service-popup .custom-service {
        width: 100%;
        max-width: 100%;
    }

    .custom-service-popup {
        width: 100%;
        height: 100%;
        max-width: 748px;
        max-height: 100%;
        border-radius: 0;
        padding: 20px 0 0;
        border-radius: 0;
        gap: 0;
    }

    .custom-service-popup--descriptions {
        padding: 60px 4px 0 15px;
    }

    .custom-service-popup-heading__title {
        max-width: 195px;
        font-size: 20px;
        line-height: 22px;
        text-align: center;
        margin: 0 auto;
        padding: 0;
    }

    .custom-service-popup__close-btn {
        position: absolute;
        top: 11px;
        right: 10px;
    }

    .custom-service-tabs {
        gap: 0;
        position: relative;
        padding: 30px 0 35px;
    }

    .custom-service-tabs--confirm {
        padding: 30px 0 19px;
    }


    .custom-service-popup .custom-service-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
        max-height: 100%;
        padding: 0 15px 20px;
        margin: 32px 0 0 0;
    }

    .custom-service-popup .custom-service-list::-webkit-scrollbar {
        width: 0;
    }
    
    .custom-service-popup .custom-service-list::-webkit-scrollbar-thumb {
        background-color: #ffffff;
    }

    .custom-service-popup .controls {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding: 0 15px 0;
        gap: 12px;
        width: 100%;
        background: linear-gradient(0deg, #FFF 52.03%, rgba(255, 255, 255, 0.00) 96.14%);
    }


    .selected-product {
        width: calc(100% - 30px);
        padding: 0 0 5px;
        margin: 32px auto 0;
    }

    .selected-product .product-price {
        font-size: 16px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: 0.32px;
    }

    .confirm-service-list {
        gap: 35px;
        padding: 0 15px 20px;
        margin: 30px 0 0;
        overflow-y: scroll;
        max-height: 100%;
    }

    .confirm-service {
        max-width: 93%;
        padding: 0 2px;
        gap: 5px;
    }

    .confirm-service__price {
        padding: 0 10px 0 0;
    }

    .confirm-service__delete {
        top: 3px;
        right: -19px;
    }


    .total {
        max-width: 100%;
        font-size: 22px;
        letter-spacing :0.44px;
        padding: 0 15px;
        margin: auto auto 17px;
    }

    .total__price .c-rouble {
        margin: 0 0 0 6px;
    }


    .custom-service-description-popup {
        max-height: 100%;
        padding: 0 8px 100px 0;
    }

    .custom-service-description-popup__title {
        font-size: 20px;
        line-height: 22px;
    }

    .custom-service-description-popup__img {
        margin: 19px 0 16px 0;
    }

    .custom-service-description-popup__description {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.28px;
    }

    .add-custom-service {
        width: calc(100% - 30px);
        bottom: 20px;
        padding: 19px 0;
    }
}