.buy-gift{
    background: #F2F4F9;
    margin: 16px 0;
    padding: 21px 17px 20px 20px;
}
.buy-gift:last-child{
    margin-bottom: 0;
}

.buy-gift__pre{
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.buy-gift__pre:before{
    content: "";
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 0.5C6.06065 0.5 4.875 1.68565 4.875 3.125C4.875 3.4648 5.11911 3.70074 5.23901 4H0.5V4.875V10.125H1.375V21.5H20.625V10.125H21.5V4H16.761C16.8809 3.70074 17.125 3.4648 17.125 3.125C17.125 1.68565 15.9393 0.5 14.5 0.5C12.9697 0.5 11.9365 1.65276 11.2546 2.62256C11.0916 2.85446 11.1278 2.865 11 3.08228C10.8722 2.865 10.9084 2.85446 10.7454 2.62256C10.0635 1.65276 9.03029 0.5 7.5 0.5ZM7.5 2.25C8.04783 2.25 8.76465 2.84724 9.31323 3.62744C9.44276 3.81166 9.41657 3.82472 9.52002 4H7.5C7.0056 4 6.625 3.6194 6.625 3.125C6.625 2.6306 7.0056 2.25 7.5 2.25ZM14.5 2.25C14.9944 2.25 15.375 2.6306 15.375 3.125C15.375 3.6194 14.9944 4 14.5 4H12.48C12.5834 3.82472 12.5572 3.81166 12.6868 3.62744C13.2353 2.84724 13.9522 2.25 14.5 2.25ZM2.25 5.75H7.5H9.69946H10.125V8.375H2.25V5.75ZM11.875 5.75H12.3005H14.5H19.75V8.375H11.875V5.75ZM3.125 10.125H10.125V19.75H3.125V10.125ZM11.875 10.125H18.875V19.75H11.875V10.125Z' fill='%23002F87'/%3E%3C/svg%3E%0A") center/cover no-repeat;
    margin-right: 10px;
}

.buy-gift__view{
    font-size: 12px;
    font-weight: 400;
    margin-left: 18px;
    flex: 1;
}
.buy-gift .header__search-select .custom-select-container {
    width: auto !important;
}
.base-form .buy-gift .custom-select-opener::after{
    display: none;
}


.custom-dropdown-select {
    position: relative;
    width: 220px;
    font-family: inherit;
    font-size: 13px;
}
.custom-select__selected {
    background: #fff;
    border: 1px solid #CCD5E7;
    padding: 8px 36px 8px 16px;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    align-items: center;
    position: relative;
}
.custom-select__selected:after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cdiv xmlns='' id='in-page-channel-node-id' data-channel-name='in_page_channel_GjHDW2'/%3E%3Cpath d='M13.7071 6.70711C14.0976 6.31658 14.0976 5.68342 13.7071 5.29289C13.3166 4.90237 12.6834 4.90237 12.2929 5.29289L13.7071 6.70711ZM8 11L7.29289 11.7071C7.68342 12.0976 8.31658 12.0976 8.70711 11.7071L8 11ZM3.70711 5.29289C3.31658 4.90237 2.68342 4.90237 2.29289 5.29289C1.90237 5.68342 1.90237 6.31658 2.29289 6.70711L3.70711 5.29289ZM12.2929 5.29289L7.29289 10.2929L8.70711 11.7071L13.7071 6.70711L12.2929 5.29289ZM8.70711 10.2929L3.70711 5.29289L2.29289 6.70711L7.29289 11.7071L8.70711 10.2929Z' fill='%2300091A'/%3E%3Cscript xmlns=''/%3E%3Cscript xmlns=''/%3E%3Cscript xmlns=''/%3E%3Cscript xmlns=''/%3E%3C/svg%3E") no-repeat center/contain;
    transform: translateY(-50%);
    pointer-events: none;
}
.custom-select__selected.open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.custom-select__options {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 10;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 4px 16px rgba(0,47,135,0.07);
}
.custom-select__option {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    font-size: 13px;
    justify-content: space-between;
}
.custom-select__txt{
    word-wrap: break-word;
}
.custom-select__option.selected,
.custom-select__option:hover {
    background: #f2f6fa;
    color: #002F87;
}
.custom-select__val{
    margin: 0 0 0 5px;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.buy-gift__item input[type="radio"]:checked+label .custom-select__val{
    opacity: 1;
    pointer-events: all;
}

.custom-select__val input{
    padding: 8px 2px;
    text-align: center;
    max-width: 32px;
    border: 0;
}
.i-minus{
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 15px 0 0;
    background: url("data:image/svg+xml,%3Csvg width='12' height='2' viewBox='0 0 12 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L11 1' stroke='%2380848C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") center no-repeat;
    cursor: pointer;
}
.i-plus{
    display: inline-block;
    width: 11px;
    height: 12px;
    margin: 0 0 0 15px;
    background: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6H11' stroke='%2380848C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 11L6 1' stroke='%2380848C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") center/cover no-repeat;
    cursor: pointer;
}


.buy-gift-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.buy-gift-top__del{
    font-size: 12px;
    color: #80848C;
    padding-right: 32px;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}
.buy-gift:hover .buy-gift-top__del{
    pointer-events: all;
    opacity: 1;
}

.buy-gift-top__del:after{
    content: "";
    display: inline-block;
    width: 16px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg width='16' height='18' viewBox='0 0 16 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.22222 0L5.33333 0.9H0V2.7H0.986111L2.57986 16.4109C2.68408 17.3106 3.45067 18 4.34549 18H11.6545C12.5493 18 13.3159 17.3106 13.4201 16.4109L15.0139 2.7H16V0.9H14.2222H10.6667L9.77778 0H6.22222ZM2.77604 2.7H3.55556H13.224L11.6545 16.2H4.34549L2.77604 2.7ZM5.33333 4.5V13.5C5.33333 13.9968 5.73156 14.4 6.22222 14.4H7.11111V4.5H5.33333ZM8.88889 4.5V14.4H9.77778C10.2684 14.4 10.6667 13.9968 10.6667 13.5V4.5H8.88889Z' fill='%2380848C'/%3E%3C/svg%3E") center no-repeat;
    position: absolute;
    right: 0;
    top:  50%;
    transform: translateY(-50%);
}

.buy-gift-top__name{
    color: #002F87;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    font-family: Montserrat, Verdana, Arial, sans-serif;
}

.buy-gift-top__name:before{
    content: "";
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 0.5C6.06065 0.5 4.875 1.68565 4.875 3.125C4.875 3.4648 5.11911 3.70074 5.23901 4H0.5V4.875V10.125H1.375V21.5H20.625V10.125H21.5V4H16.761C16.8809 3.70074 17.125 3.4648 17.125 3.125C17.125 1.68565 15.9393 0.5 14.5 0.5C12.9697 0.5 11.9365 1.65276 11.2546 2.62256C11.0916 2.85446 11.1278 2.865 11 3.08228C10.8722 2.865 10.9084 2.85446 10.7454 2.62256C10.0635 1.65276 9.03029 0.5 7.5 0.5ZM7.5 2.25C8.04783 2.25 8.76465 2.84724 9.31323 3.62744C9.44276 3.81166 9.41657 3.82472 9.52002 4H7.5C7.0056 4 6.625 3.6194 6.625 3.125C6.625 2.6306 7.0056 2.25 7.5 2.25ZM14.5 2.25C14.9944 2.25 15.375 2.6306 15.375 3.125C15.375 3.6194 14.9944 4 14.5 4H12.48C12.5834 3.82472 12.5572 3.81166 12.6868 3.62744C13.2353 2.84724 13.9522 2.25 14.5 2.25ZM2.25 5.75H7.5H9.69946H10.125V8.375H2.25V5.75ZM11.875 5.75H12.3005H14.5H19.75V8.375H11.875V5.75ZM3.125 10.125H10.125V19.75H3.125V10.125ZM11.875 10.125H18.875V19.75H11.875V10.125Z' fill='%23002F87'/%3E%3C/svg%3E%0A") center/cover no-repeat;
    margin-right: 22px;
}

.buy-gift__item{
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.buy-gift__item:last-child{
    margin-bottom: 0;
}

.buy-gift__info{
    display: flex;
    align-items: center;
}
.buy-gift__price{
    font-size: 12px;
    color: rgb(128, 132, 140);
    white-space: nowrap;
    margin-right: 32px;
}
.buy-gift__title{
    flex:1;
    padding-right: 30px;
}
.buy-gift__name{
    font-size: 13px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
    padding-right: 30px;
}

.p-gift__txt_basket a{
    font-size: 13px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines to show */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    flex: 1;
    padding-left: 44px;
    color: rgba(51, 51, 51, 0.9);
}
.p-gift__txt_basket a:hover{
    color: rgba(51, 51, 51, 1);
}

.buy-gift__item label{
    display: block;
    width: 100%;
}
.buy-gift__label{
    display: flex;
    align-items: center;
}

.buy-gift__item input[type="radio"]:not(:checked),
.buy-gift__item input[type="radio"]:checked {
    position: absolute;
    left: -9999px;
}
.buy-gift__item input[type="radio"]:not(:checked) + label,
.buy-gift__item input[type="radio"]:checked + label {
    position: relative;
    cursor: pointer;
    padding-left: 43px;
    line-height: 16px;
}
.buy-gift__item input[type="radio"]:not(:checked) + label {
    color: rgba(51, 51, 51, 0.9);
}
.buy-gift__item input[type="radio"]:checked + label .buy-gift__name{
    color: rgba(51, 51, 51, 1);
    font-weight: 600;
}


.p-gift__txt_basket a:hover{
    color: rgba(51, 51, 51, 1);
}


.buy-gift__item input[type="radio"]:not(:checked) + label:before,
.buy-gift__item input[type="radio"]:checked + label:before {
    content: '';
    position: absolute;
    left: 4px;
    /* top: 1px; */
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #80848C;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
}


.buy-gift__item input[type="radio"]:not(:checked) + label:after,
.buy-gift__item input[type="radio"]:checked + label:after {
    content: '';
    background-color: #002F87;
    width: 8px;
    height: 8px;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    /* top: 5px; */
    top: 50%;
    transform: translateY(-50%);
    left: 8px;
    z-index: 4;
    opacity: 0;
}
.buy-gift__item input[type="radio"]:checked + label:after {
    opacity: 1;
}

.p-gift{
    background: #F2F4F9;
    border-radius: 4px;
    padding: 16px 24px 24px 16px;
    margin: 32px 0 0;
}
.p-gift__top{
    /* padding-left: 48px; */
    position: relative;
    margin-bottom: 17px;
    font-size: 14px;
    font-family: Montserrat, Verdana, Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 9px;
    color: #002F87;
    display: flex;
    align-items: center;
}
.p-gift__top:before{
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 16px;
    background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 0.5C6.06065 0.5 4.875 1.68565 4.875 3.125C4.875 3.4648 5.11911 3.70074 5.23901 4H0.5V4.875V10.125H1.375V21.5H20.625V10.125H21.5V4H16.761C16.8809 3.70074 17.125 3.4648 17.125 3.125C17.125 1.68565 15.9393 0.5 14.5 0.5C12.9697 0.5 11.9365 1.65276 11.2546 2.62256C11.0916 2.85446 11.1278 2.865 11 3.08228C10.8722 2.865 10.9084 2.85446 10.7454 2.62256C10.0635 1.65276 9.03029 0.5 7.5 0.5ZM7.5 2.25C8.04783 2.25 8.76465 2.84724 9.31323 3.62744C9.44276 3.81166 9.41657 3.82472 9.52002 4H7.5C7.0056 4 6.625 3.6194 6.625 3.125C6.625 2.6306 7.0056 2.25 7.5 2.25ZM14.5 2.25C14.9944 2.25 15.375 2.6306 15.375 3.125C15.375 3.6194 14.9944 4 14.5 4H12.48C12.5834 3.82472 12.5572 3.81166 12.6868 3.62744C13.2353 2.84724 13.9522 2.25 14.5 2.25ZM2.25 5.75H7.5H9.69946H10.125V8.375H2.25V5.75ZM11.875 5.75H12.3005H14.5H19.75V8.375H11.875V5.75ZM3.125 10.125H10.125V19.75H3.125V10.125ZM11.875 10.125H18.875V19.75H11.875V10.125Z' fill='%23002F87'/%3E%3C/svg%3E%0A") center no-repeat;
}
.p-gift__txt{
    padding-left: 48px;
    font-size: 13px;
    color: #333333;
}

.p-gift__txt a,
.p-gift__txt span{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.p-gift__txt ul li{
    margin: 0 0 16px 0;
    position: relative;
}
.p-gift__txt ul li:before{
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #898D8E;
    border-radius: 50%;
    position: absolute;
    left: -19px;
    top: 6px;
}
.p-gift__txt ul li:last-child{
    margin-bottom: 0;
}
.p-gift a:hover{
    color: #004DE6;
}
.basket__text .author{
    display: block;
}
.basket__prices.m-mobile{
    display: none;
}

@media (max-width: 1580px){
    .buy-gift__label {
        flex-direction: column;
        align-items: flex-start;
    }
    .buy-gift__name{
        padding-right: 0;
    }
    .buy-gift-top__name:before{
        margin-right: 15px;
    }
    .buy-gift__item input[type="radio"]:not(:checked) + label, .buy-gift__item input[type="radio"]:checked + label{
        padding-left: 37px;
    }
    .buy-gift__info {
        padding-left: 0;
        margin-top: 16px;
    }
    .buy-gift__title {
        flex: unset;
        padding-right: 0;
    }
    .buy-gift__item input[type="radio"]:not(:checked) + label:before, .buy-gift__item input[type="radio"]:checked + label:before{
        top: 1px;
        transform: unset;
    }
    .buy-gift__item input[type="radio"]:not(:checked) + label:after, .buy-gift__item input[type="radio"]:checked + label:after{
        top: 5px;
        transform: unset;
    }
    .p-gift__txt_basket a{
        padding-left: 37px;
    }
}

@media (max-width: 1400px){
    .basket__prices .price{
        font-size: 18px;
        line-height: 20px;
    }
}

@media (max-width: 1200px){
    .buy-gift-top__del{
        opacity: 1;
        pointer-events: all;
    }
    .basket__prices.m-desktop{
        display: none;
    }
    .basket__prices.m-mobile{
        display: flex;
    }
    .basket__prices .price {
        font-size: 14px;
        line-height: 16px;
    }
    .basket__top{
        min-height: 82px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}
@media (max-width: 1200px) {
    @supports (display: grid) {
        .basket__good {
            grid-template-rows: [top-start] max-content [top-end] 8px [middle-start] max-content [middle-end] 18px [bottom-start] max-content [bottom-end];
        }
    }
}

@media (max-width: 991px){
    .buy-gift {
        padding: 10px 15px;
    }
}
@media (max-width: 767px){
    .buy-gift__icon{
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
}

@media (max-width: 600px){
    .custom-dropdown-select {
        width: 100%;
    }
    .buy-gift{
        margin-top: 16px;
        padding: 16px;
    }
    .buy-gift-top__del{
        opacity: 1;
        text-indent: -9999em;
    }
    .buy-gift__title {
        padding-right: 0;
        width: 100%;
    }
    .buy-gift__info{
        width: 100%;
    }
    .p-gift {
        padding: 16px;
    }
    .custom-select__val{
        margin: 0;
    }
    .buy-gift-top{
        margin-bottom: 7px;
    }
    .basket__text{
        order: 1;
        grid-column: check-img-start / btn-end;
        /* grid-column: check-img-end / btn-end; */
    }
    .basket__top {
        margin-left: 96px;
        padding-left: 16px;
    }
    .basket-item-price-econom{
        padding-top: 0;
    }
    .basket__quantity {
        text-align: center;
        width: 100%;
        justify-content: center;
        grid-column: check-img-start / btn-end;
    }
    .basket__prices .price {
        font-size: 14px;
        line-height: 16px;
    }
}

@media (max-width: 400px){
    .basket__top {
        margin-left: 88px;
    }
}

@media (max-width: 350px){
    .basket__top {
        margin-left: 78px;
        min-height: 69px;
    }
}