:root {
    --font-color: #3F3F3F;
   }

#pagetitle {
    display: none;
}

.visually-hidden:not(:focus):not(:active),
input[type="checkbox"].visually-hidden,
input[type="radio"].visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.gift-card-benefits, 
gift-card {
    color: var(--font-color);
}

.gift-card-benefits__title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-family: OpiumNewWebNormal, Circe;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    line-height: 140%;
    text-align: center;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.gift-card-benefits__list {
    padding-left: 0;
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.gift-card-benefits__item {
    padding-left: 0;
    max-width: 220px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.055em;
}

.gift-card-benefits__item-title {
    margin-top: -37px;
    margin-bottom: 0;
    font-weight: bold;
    line-height: 150%;
    text-transform: uppercase;

}

.gift-card-benefits__item-description {
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 120%;
}

.gift-card {
    margin-bottom: 30px;
    padding-top: 30px;
    max-width: 1007px;
    margin: 0 auto;
}

.gift-card__preview-wrapper {
    /*background-color: #ededed;
    padding: 138px 0;*/
    text-align: center;
}

.gift-card__preview-img-wrapper {
    /*position: relative;
    width: 95%;
    max-width: 356px;
    margin: 0 auto;
    text-align: center;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.25));*/
}

.gift-card__preview-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    max-height: 678px;
}

.gift-card__preview-img-wrapper::before,
.popup__card-view-img-wrapper::before {
    /**content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;**/
}

/*.gift-card__preview-img-wrapper--pink::before,
.popup__card-view-img-wrapper--pink_::before {
    background-image: linear-gradient(180deg, rgba(225, 211, 203, 0) 28.28%, #f2dddd 90.58%);
}

.gift-card__preview-img-wrapper--grey::before,
.popup__card-view-img-wrapper--grey_::before {
    background-image: linear-gradient(180deg, rgba(225, 211, 203, 0) 28.28%, #c4c4c4 90.58%);
}

.gift-card__preview-img-wrapper--beje::before,
.popup__card-view-img-wrapper--beje::before {
    background-image: linear-gradient(180deg, rgba(225, 211, 203, 0) 28.28%, #e1d3cb 90.58%);
}

.gift-card__preview-img-wrapper--NYgrey::before,
.popup__card-view-img-wrapper--NYgrey::before {
    background-image: linear-gradient(180deg, rgba(250, 229, 209, 0) 32.23%, rgba(230, 203, 177, 0.92) 90.58%);
}

.gift-card__preview-img-wrapper--NYred::before,
.popup__card-view-img-wrapper--NYred::before {
    background-image: linear-gradient(180deg, rgba(231, 184, 179, 0.0948) 38.3%, rgba(132, 78, 71, 0.79) 90.58%);
}

.gift-card__preview-img-wrapper--NYgreen::before,
.popup__card-view-img-wrapper--NYgreen::before {
    background-image: linear-gradient(180deg, rgba(160, 167, 150, 0.0711) 32.23%, rgba(108, 119, 91, 0.79) 90.58%);
}
*/
.gift-card__preview-img,
.popup__card-view-img {
    display: none;
}

.gift-card__preview-img--NYgrey,/*.--поменять на --standart после НГ, после закомментирования новогоднего дизайна в шаблоне*/
.popup__card-view-img--NYgrey {
    display: inline-block;
}

.gift-card__preview-img,
.gift-card__preview-img-wrapper::before {
    border-radius: 42px;
}

.popup__card-view-img,
.popup__card-view-img-wrapper::before {
    border-radius: 30px;
}

.gift-card__preview-img-text {
    position: absolute;
    top: calc(50% - 12px);
    width: 100%;
    margin-left: 0.3em;
    text-align: center;
    font-family: OpiumNewWebNormal, Circe;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.gift-card__preview-img-logo {
    position: absolute;
    bottom: 13%;
    left: calc(50% - 22%);
    width: 44%;
}

.gift-card__specification-wrapper {
    text-align: center;
    color: #3F3F3F;
    letter-spacing: 0.055em;
}

.gift-card__page-title {
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.gift-card__form-customise-block-title {
    font-size: 12px;
    line-height: 103.5%;
}

.gift-card__card-bg-choiсe-wrapper {
    margin-bottom: 30px;
}

.gift-card__card-bg-choiсe-input {
    display: none;
}

.gift-card__card-bg-choiсe-label {
    width: 30px;
    height: 30px;
    margin-bottom: 0;
    border-radius: 50%;
    cursor: pointer;
}

.gift-card__card-bg-choiсe-label:not(:last-child) {
    margin-right: 10px;
}

.gift-card__card-bg-choiсe-label--grey {
    background: #C4C4C4;
}

.gift-card__card-bg-choiсe-label--pink {
    background: #FFC6D5;
}

.gift-card__card-bg-choiсe-label--beje {
    background: #F3E8AB;
}

.gift-card__card-bg-choiсe-label--NYgrey {
    background: #e6cbb1;
}

.gift-card__card-bg-choiсe-label--NYred {
    background: #E32423;
}

.gift-card__card-bg-choiсe-label--NYgreen {
    background: #A8AE9C;
}

/* [class*=gift-card__card-bg-choiсe-label--NY] {
    display: none;
}*/ /* раскомментить правило после закомментирования новогоднего дизайна в шаблоне */


.gift-card__card-bg-choiсe-input:checked + .gift-card__card-bg-choiсe-label {
    box-shadow: 0 0 0 3px #ffffff, 
                0 0 0 4px #dddddd;
}

.gift-card__card-cost-input {
    display: block;
    margin: 0 auto;
    height: 34px;
    width: 140px;
    padding: 10px 7px 7px;
    text-align: center;
    border: 1px solid #C9C9C9;
    font-size: 18px;
    letter-spacing: 0.08em;
    line-height: 103.5%;
    font-weight: 500;
    border-radius: 5px;
}

.gift-card__card-cost-input::-webkit-inner-spin-button, 
.gift-card__card-cost-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.gift-card__card-cost-input {
    -moz-appearance: textfield;
}

.gift-card__card-cost-range-wrapper {
    margin-top: 30px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gift-card__card-cost-range-wrapper::before {
    content: "-";
}

.gift-card__card-cost-range-wrapper::after {
    content: '+';
}

.gift-card__card-cost-range-wrapper::before,
.gift-card__card-cost-range-wrapper::after {
    color: #3f3f3f;
    font-size: 15px;
    line-height: 16px;
    font-weight: 400;
}

.gift-card__card-cost-range {
    display: block;
    margin: 0 auto;
    -webkit-appearance: none;
    appearance: none;
    width: 85%;
    background: transparent;
}
  
.gift-card__card-cost-range:focus {
    outline: 1px solid #F2DDDD;
  }
  
.gift-card__card-cost-range::-ms-track {
    width: 100%;
    cursor: pointer;
    background: transparent; 
    border-color: transparent;
    color: transparent;
}

.gift-card__card-cost-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background-color: #3f3f3f;
    cursor: pointer;
    margin-top: -7px;
}

.gift-card__card-cost-range::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background-color: #3f3f3f;
    cursor: pointer;
}

.gift-card__card-cost-range::-webkit-slider-runnable-track {
    height: 2px;
    cursor: pointer;
    background-color: #3f3f3f;
    border-radius: 1.3px;
}

.gift-card__card-cost-range::-moz-range-track {
    height: 2px;
    cursor: pointer;
    background-color: #3f3f3f;
    border-radius: 1.3px;
}

.gift-card__form-btn,
.popup-success__external-link {
    width: 100%;
    min-width: 210px;
    height: 40px;
    padding: 17px 15px 12px;
    background-color: #C4C4C4;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 103.5%;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f3f3f;
}

.btn.gift-card__form-btn:hover,
.btn.gift-card__form-btn:focus,
.btn.gift-card__form-btn:active,
.popup-success__external-link:hover,
.popup-success__external-link:focus,
.popup-success__external-link:active {
    color: #fff;
    background-color: #D9BFBF;
    border-color: #D9BFBF;
}

.gift-card__description-wrapper {
    margin-top: 40px;
    width: 100%;
}

.gift-card__description-title {
    position: relative;
    text-align: left;
    font-size: 20px;
    font-weight: normal;
    font-size: 14px;
    line-height: 103.5%;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.gift-card__description-title::after {
    content: '';
    width: 6px;
    height: 6px;
    position: absolute;
    right: 2px;
    top: 0;
    border-top: 1px solid #3F3F3F;
    border-right: 1px solid #3F3F3F;
    transform: rotate(133deg);
}

.gift-card__description-text-wrapper {
    display: none;
    width: 85%;
    margin: 0 auto 30px;
}

.gift-card__description-text {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 127%;
    letter-spacing: 0.055em;
    text-align: left;
}

.gift-card__description-text > span {
    text-decoration: underline;
}

.gift-card__description-text > a {
    color: #3F3F3F;
    text-decoration: underline;
}

.gift-card__description-text > a:hover {
    text-decoration: none;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    min-height: 100vh;
    height: -webkit-fill-available;
    background: rgb(159 159 159 / 60%);
    backdrop-filter: blur(2px);
}

.popup__content {
    position: fixed;
    top: 0;
    bottom: 0;
    overflow: scroll;
}

.popup__card-view {
    background-color: #ffffff;
    padding: 22px 10px 15px;
}

.popup__card-view-title {
    width: 273px;
    margin: 0 auto 7px;
    font-size: 12px;
    line-height: 123%;
    letter-spacing: 0.05em;
    color: #828282;
}

.popup__card-view-content {
    width: 273px;
    height: 450px;
    margin: 0 auto;
    padding: 18px 45px;
    border: 1px solid #C9C9C9;

}

.popup__card-view-img-wrapper {
    position: relative;
    width: 180px;
    height: 294px;
    margin-bottom: 30px;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.25));
}

.popup__card-view-img-logo {
    position: absolute;
    bottom: calc(50% - 5%);
    left: calc(50% - 35%);
    width: 71%;
}

.popup__card-view-img {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.popup__card-descr {
    font-weight: normal;
    font-size: 12px;
    line-height: 126%;
    letter-spacing: 0.05em;
    color: #828282;
}

.popup__card-descr-value--number {
    text-transform: lowercase;
}

.popup__form-wrapper {
    background-color: #e8e8e8;
    padding-top: 27px;
    padding-left: 33px;
    padding-right: 33px;
}

.popup__form-title {
    margin-bottom: 14px;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.popup__form {
    max-width: 370px;
}

.popup__form-label,
.popup__form-checkbox-label {
    font-size: 13px;
    line-height: 123%;
    letter-spacing: 0.05em;
    color: #545454;
}

.popup__form-label {
    display: block;
    margin-bottom: 5px;
}

.popup__form-input {
    width: 100%;
    margin-bottom: 14px;
    height: 40px;
    background-color: #f5f5f5;
    border: 1px solid #C9C9C9;
    padding: 17px 13px 14px;
    font-size: 15px;
    line-height: 96.4%;
    letter-spacing: 0.05em;
}

.popup__form-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.popup__form-checkbox-wrapper + .popup__form-checkbox-wrapper {
    margin-top: 14px;
}

.popup__form-checkbox-wrapper + .gift-card__form-btn {
    margin-top: 22px;
}

.popup__form-checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.popup__form-checkbox-label a {
    color: inherit;
    text-decoration: underline;
}

.popup__form-checkbox-label::before {
    content: '';
    display: block;
    border: 1px solid #C9C9C9;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    min-width: 33px;
    height: 33px;
    margin-right: 14px;
}

.popup__form-checkbox:checked + .popup__form-checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 7px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #3F3F3F;
}

.popup__close-icon {  
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    color: #3F3F3F;
    font-size: 20px;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background-color: transparent;
}

.popup-success {
    background-color: #F7ECEA;
}

.popup-success__title {
    font-family: OpiumNewWebNormal, Circe;
    -webkit-font-smoothing: antialiased;
    line-height: 120%;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.popup-success__external-link {
    display: block;
    height: 57px;
    padding-top: 23px;
    font-size: 16px;
    white-space: nowrap;
}

.popup-success__description {
    display: flex;
}

.popup-success__details {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 134%;
}

.popup-success__details:not(:last-child) {
    font-weight: 500;
}





@media (max-width: 425px) {
    .gift-card-benefits {
        margin-top: 40px;
    }

    .gift-card-benefits__title {
        width: 300px;
        font-size: 27px;
    }

    .gift-card-benefits__list {
        justify-content: flex-start;
        max-width: 100%;
        margin-top: 37px;
        padding-bottom: 15px;
        overflow: scroll hidden;
        -webkit-scroll-snap-type: x mandatory;
        scroll-snap-type: x mandatory;
    }

    .gift-card-benefits__item {
        min-width: 100%;
        scroll-snap-align: start;
        background-image: url(/gift-card/img/swipe-icon.svg);
        background-repeat: no-repeat;
        background-position: calc(100% - 30px) 15px;
        background-size: 30px;
    }

    .gift-card-benefits__item > p {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }

    .gift-card-benefits__item:first-child {
        order: 1;
    }

    .gift-card {
        padding-top: 0;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .gift-card__preview-wrapper{
        margin-bottom: 20px;
    }

    .gift-card__preview-img-wrapper {
        /*width: 65%;*/
    }

    .gift-card__specification-wrapper {
        width: 100%;
    }

    .gift-card__preview-img,
    .gift-card__preview-img-wrapper::before {
        border-radius: 32px;
        max-height: 478px;
    }

    .popup__card-view-img,
    .popup__card-view-img-wrapper::before {
        border-radius: 25px;
    }

    .popup {
        z-index: 10;
    }

    .popup__content {
        width: 100%;
        display: block;
    }

    .popup__content.popup__content--buying {
        height: auto;
        overflow: auto;
    }

    .popup__form {
        padding-bottom: 100px;
    }

    .popup__close-icon {  
        position: fixed;
    }

    .popup-success {
        height: 100vh;
        padding: 52px 30px 74px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .popup-success__title {
        margin-bottom: 35px;
        font-size: 40px;
    }

    .popup-success__description {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .popup-success__external-link {
        order: 1;
    }
    
    .popup-success__details-wrapper {
        margin-bottom: 35px;
    }
}





@media (min-width: 426px) {
    .gift-card-benefits {
        margin-top: 60px;
    }

    .gift-card-benefits__title {
        font-size: 40px;
    }

    .gift-card-benefits__list {
        margin-top: 54px;
    }

    .gift-card-benefits__item:nth-child(2) {
        margin: 0 50px;
    }

    .gift-card {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-gap: 116px;
        margin-top: 80px;
        margin-bottom: 30px;
    }

    .gift-card__specification-wrapper {
        min-width: 326px;
        padding-top: 55px;
    }

    .gift-card__preview-img-wrapper {
        position: sticky;
        top: 30px;
    }

    .gift-card__preview-img-text {
        font-size: 27px;
    }

    .popup__content--buying {
        display: grid;
        grid-template-columns: 1fr 1fr;
        top: calc(50% - 373px);
        left: calc(50% - 435px);
        width: 870px;
        height: 775px;
        overflow: auto;
    }

    .popup-success {
        top: calc(50% - 265px);
        left: calc(50% - 435px);
        width: 870px;
        height: 530px;
        padding: 52px 60px 74px;
    }

    .popup-success__title {
        width: 80%;
        margin-bottom: 65px;
        font-size: 58px;
    }

    .popup-success__description {
        justify-content: space-between;
    }
    
    .popup-success__details-wrapper {
        max-width: 52%;
        margin-top: -22px;   
    }

    .popup-success__details {
        text-align: right;
    }

    .popup-success__external-link {
        width: 35%;
    }

    .popup-success__details-wrapper {
        max-width: 65%;
    }
}




@media (max-width: 768px) {    
    .popup__content {
        max-width: 100%;
        left: 0;
    }

    .gift-card__preview-wrapper {
        padding: 20px 0;
    }

    .gift-card__preview-img-text {
        font-size: 17px;
    }
}




@media  (min-width: 426px) and (max-width: 1024px) { 
    .gift-card {
        grid-gap: 80px;
    }

    .gift-card__specification-wrapper {
        padding-right: 20px;
        min-width: 355px;
    }
}



@media (min-width: 426px) and (max-height: 730px) {
    .popup__content--buying {
        top: 0;
        max-height: 100vh;
        max-height: -webkit-fill-available;
    }

    .popup__form-wrapper {
        padding-bottom: 50px;
    }
}

@media  (max-width: 360px) {
    
    .popup-success__title {
        font-size: 32px;
    }
}

