.btn.detail-appointment {
    width: 100%;
}

.grey_block .page-top > div:last-of-type {
    z-index: 1;
}
.wrapper1 #content {
    z-index: unset;
}

.wrapper1 .basket_wrapp,
body .wrapper1 .header_wrap {
    z-index: 9;
}

.detail-element__detail-text {
    background-color: #fff;
    border-radius: 12px;
    padding: 28px;
}

.detail-element__detail-text p {
    font-family: "Montserrat", serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: rgba(90, 97, 108, 1);
}

.detail-element__detail-text h2 {
    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    color: rgba(51, 51, 51, 1);
}

body.detail_page,
.fill_bg_n .wrapper1:not(.with_left_block) .grey_block {
    background-color: #F9F9FA !important;
}

.detail-sum {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
}

.help-text__block {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.help-text__info {
    color: #3B61B9;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}

.catalog_detail.detail {
    padding: 0;
}

.help-text__popup {
    display: none;
    position: absolute;
    top: 25px;
    z-index: 1;
    background-color: #fff;
    box-shadow: 5px 5px #e3e3e345;
    border: 1px solid #e3e3e345;
    border-radius: 12px;
    padding: 12px;
}

.help-text__popup p {
    margin: 0;
    color: #5A616C;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.help-text__popup.show {
    display: flex;
}

.basket-sum__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.basket-sum__item .basket-sum__name {
    color: rgba(10, 10, 10, 1);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    opacity: .5;
}

.basket-sum__item.main .basket-sum__name {
    font-size: 18px;
    line-height: 24px;
    opacity: 1;
}

.product-container .product-side {
    width: 380px;
}

.basket-sum__item .basket-sum__price {
    color: #0A0A0A;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
    text-wrap: nowrap;
    opacity: .5;
}

.basket-sum__item.main .basket-sum__price {
    font-size: 18px;
    line-height: 24px;
    opacity: 1;
}

.basket-sum__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9EBEF;
    margin-bottom: 20px;
}

.basket-sum__sum {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.wraps .grey_block .page-top > div:last-of-type {
    padding: 20px 0 0;
    margin-bottom: 20px;
}

.topic__heading #pagetitle {
    font-size: 40px;
    font-weight: 700;
    line-height: 52px;
}

.basket-sum__sum-msg {
    color: #5A616C;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
}

.basket-sum__sum-digit {
    color: #0A0A0A;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 44px;
}

.additional-text__block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.additional-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Montserrat", serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: rgba(59, 97, 185, 1);
}

.help-text {
    margin-bottom: 24px;
}

body .product-side.left_block > .inner-wrapper-sticky > div:first-of-type {
    margin-bottom: 20px;
}

.counter_wrapp .button_block.wide .btn {
    border-radius: 10px !important;
}

.counter_wrapp .button_block.wide .btn i {
    display: none;
}

.counter_wrapp .button_block.wide .btn span {
    padding: 0;
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-transform: none;
}

.detail-element {
    margin-bottom: 20px;
}

.wrapper1 .wraps > .wrapper_inner {
    padding-bottom: 120px;
}

.viewed_product_block .wrapper_inner .viewed-wrapper {
    padding: 0 0 40px;
}

.detail-element__consult-form .section-consultant-doctor .section-consultant-doctor__person {
    flex: 0 0 57%;
}

body .product-side.left_block .cost {
    margin: 0;
}

.detail-element__main-content {
    background-color: #fff;
    border-radius: 12px;
}

.detail-element__content-blocks {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px;
}

.detail-element__instructions {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-element__instructions h2 {
    margin: 0;
    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    color: rgba(51, 51, 51, 1);
}

.detail-element__instructions-block {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-element__instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid rgba(233, 235, 239, 1);
    border-radius: 8px;
    font-family: "Montserrat", serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: rgba(90, 97, 108, 1);
}

.detail-element__instruction svg {
    min-width: 28px;
    height: 28px;
}

@media (min-width: 991px) {
    .right_block:not(.catalog_page_detail_with_left) .product-view--side-left,
    .right_block:not(.catalog_page_detail_with_left) .product-view--side-right {
        width: calc(100% - 400px);
    }
}

@media (max-width: 991px) {
    .detail-element {
        display: flex;
        flex-direction: column-reverse;
    }

    .product-container .info_item .adaptive-block {
        max-width: 100%;
    }

    .grey_block .page-top.maxwidth-theme > div:last-of-type {
        padding: 15px 0;
        margin-bottom: 12px;
    }

    .cost.prices {
        margin-bottom: 10px;
    }

    .section-consultant-doctor .section-consultant-doctor__content .section-consultant-doctor__button {
        width: 100%;
    }

    .doc-appointment {
        margin-bottom: 24px;
        padding: 12px;
    }

    .detail .doc-appointment img {
        margin: 0 0 12px;
        max-width: 24px;
        max-height: 24px;
    }

    .doc-appointment span {
        font-size: 14px;
        line-height: 20px;
    }

    .doc-appointment p {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 18px;
    }

    .doc-appointment a {
        padding: 12px;
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 576px) {
    .topic .topic__inner .share {
        display: none;
    }

    .page-top .share.top+.topic__heading {
        margin-right: 0;
    }

    .topic__heading #pagetitle {
        width: 100%;
        font-size: 24px;
        line-height: 28px;
    }

    .grey_block .page-top.maxwidth-theme > div:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .basket-sum__item {
        gap: 20px;
    }

    .detail-element__detail-text {
        padding: 12px;
    }

    .compact-catalog .ajax_load .item.item_wrap {
        width: 100%;
    }

    .detail-similar .detail-similar__items {
        padding: 0;
    }

    .detail-element__instructions {
        gap: 12px;
    }

    .detail-element__instructions h2 {
        font-size: 18px;
        line-height: 26px;
    }

    .detail-element__instruction {
        padding: 8px 10px;
        font-size: 14px;
        line-height: 20px;
        gap: 4px;
    }

    .detail-element__instruction svg {
        min-width: 20px;
        height: 20px;
        width: 20px;
    }
}