/* /gift/gift.css */

.giftCard {
    overflow: hidden;
}

.giftCard__navWrapper {
    border-bottom: 1px solid #000;
}

.giftCard__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding: 13px 20px;
}

.giftCard__nav::-webkit-scrollbar {
    display: none;
}

.giftCard__navItem {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.giftCard__navItem span {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.giftCard__navItem.is-active span {
    font-weight: 500;
    border-bottom: 1px solid #000;
}

.giftCard__navItem.is-disabled {
    pointer-events: none;
}

.giftCard__body {
    position: relative;
    min-height: 610px;
    padding: 40px 0 70px;
}

.giftCard__mainTitle {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    max-width: 610px;
    margin: 0 auto 30px;
}

.giftCard__body.is-card-left .giftCard__mainTitle {
    display: none;
}

.giftCard__body.is-first-step-hidden .giftCard__mainTitle {
    display: none;
}

.giftCard__body.is-first-step-hidden .giftCard__step[data-gift-step="1"] {
    display: none;
}

.giftCard__mainTitle,
.giftCard__step[data-gift-step="1"] .giftCard__btn {
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.giftCard__body.is-first-step-fading .giftCard__mainTitle,
.giftCard__body.is-first-step-fading .giftCard__step[data-gift-step="1"] .giftCard__btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.giftCard__cardWrap {
    width: 610px;
    max-width: 100%;
    margin: 0 auto 40px;
    position: relative;
    z-index: 5;
    transition:
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
    will-change: transform, width, left, top, opacity;
}

.giftCard__cardWrap.is-no-transition {
    transition: none !important;
}

.giftCard__cardWrap.is-left {
    position: absolute;
    left: 0;
    top: 100px;
    width: 480px;
    transform: translateX(-22%) rotate(-10deg);
    margin: 0;
}

.giftCard__cardWrap.is-moving-to-final {
    position: fixed;
    z-index: 50;
    margin: 0;
    transition:
        left 0.75s ease,
        top 0.75s ease,
        width 0.75s ease,
        transform 0.75s ease;
}

.giftCard__cardWrap.is-final {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    transform: none;
}

.giftCard__cardWrap.is-motion-hidden {
    visibility: hidden;
}

/* Финальная анимация через прозрачность */
.giftCard__cardWrap.is-final-fade-out {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.giftCard__cardWrap.is-final-fade {
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.giftCard__cardWrap.is-final-fade.is-final-fade-show {
    opacity: 1;
}

.giftCard__card {
    max-width: 555px;
    margin: 0 auto;
}

.giftCard__card img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.giftCard__cardMotion {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    transform-origin: center center;
    will-change: left, top, width, transform;
}

.giftCard__cardMotion .giftCard__card {
    max-width: 555px;
    margin: 0 auto;
}

.giftCard__cardMotion img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.giftCard__steps {
    position: relative;
}

.giftCard__step {
    display: none;
    max-width: 610px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
}

.giftCard__step.is-active {
    display: block;
    animation: giftStepFade 0.35s ease forwards;
}

.giftCard__step.is-final-preparing {
    display: block;
    opacity: 0;
    pointer-events: none;
    animation: none;
}

.giftCard__step.is-final-visible {
    animation: giftStepFade 0.35s ease forwards;
}

.giftCard__body.is-card-left .giftCard__step {
    margin-left: auto;
    margin-right: auto;
}

@keyframes giftStepFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.giftCard__stepHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 75px;
}

.giftCard__title {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0;
}

.giftCard__back {
    border: 0;
    background-color: transparent;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none' viewBox='0 0 12 7'%3e%3cpath fill='%23000' d='M0 3.4v-.34L3.06 0h1.445v.17l-2.38 2.38v.085H11.9v1.19H2.125v.085l2.38 2.38v.17H3.06L0 3.4Z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    width: 24px;
    height: auto;
    aspect-ratio: 1;
    flex: none;
    padding: 0;
}

.giftCard__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 335px;
    max-width: 100%;
    min-height: 50px;
    margin: 40px auto 0;
    border: 0;
    background: #000;
    color: #FFF;
    padding: 0 24px;
    cursor: pointer;
    text-align: center;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.giftCard__btn:hover {
    text-decoration: underline;
}

.giftCard__variants {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.giftCard__variant {
    display: block;
    cursor: pointer;
    margin: 0;
}

.giftCard__variant input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.giftCard__variant span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 2px solid #DDD;
    padding: 10px 16px;
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    transition: 0.25s all ease-in-out;
}

.giftCard__variant:hover span {
    border-color: #000;
}

.giftCard__variant input:checked + span {
    border-color: #000;
}

.giftCard__recipientFields,
.giftCard__deliveryFields {
    margin: 75px auto 0;
    max-width: 335px;
}

.giftCard__field {
    display: block;
    margin-bottom: 20px;
}

.giftCard__field > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.17;
}

.giftCard__field input {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #000;
    padding: 0 0 14px;
    background: transparent;
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.giftCard__field input::placeholder {
    color: #C4C4C4;
}

.giftCard__fieldError {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
    color: #c00;
}

.giftCard__fieldError.is-active {
    display: block;
}

.giftCard__field.is-error input {
    border-color: #c00;
}

.giftCard__variants.is-error .giftCard__variant span,
.giftCard__payment.is-error .giftCard__paymentItem {
    border-color: #c00;
}

.giftCard__group {
    margin-bottom: 28px;
}

.giftCard__groupTitle {
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.giftCard__final {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.giftCard__finalCardSlot {
    position: relative;
    width: 380px;
    max-width: 100%;
    aspect-ratio: 520 / 300;
    transform: rotate(2.5deg);
}

.giftCard__summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.giftCard__summaryItem {
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.1;
}

.giftCard__summaryItem span {
    color: rgba(0, 0, 0, 0.50);
}

.giftCard__summaryItem strong {
    font-weight: 500;
}

.giftCard__payment {
    margin-top: 65px;
    border-top: 1px solid #000;
    padding-top: 20px;
}

.giftCard__paymentTop {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.giftCard__paymentTop strong {
    font-weight: 600;
}

.giftCard__paymentItem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    padding: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease;
}

.giftCard__paymentItem span {
    color: #212529;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
}

.giftCard__paymentItem input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.giftCard__paymentItem::after {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background: #fff;
    margin-left: 16px;
}

.giftCard__paymentItem:has(input:checked) {
    border-color: #000;
}

.giftCard__paymentItem:has(input:checked) span {
    font-weight: 600;
}

.giftCard__paymentItem:has(input:checked)::after {
    border-color: #d2d2d2;
    background:
        linear-gradient(#212529, #212529) center / 6px 6px no-repeat,
        #fff;
}

.js-recipient-fields,
.js-delivery-phone-field,
.js-delivery-email-field,
.js-delivery-date-fields {
    display: none;
}

.js-recipient-fields.is-active,
.js-delivery-phone-field.is-active,
.js-delivery-email-field.is-active,
.js-delivery-date-fields.is-active {
    display: block;
}

.giftCard__field--picker {
    margin-bottom: 20px;
}

.giftCard__picker {
    position: relative;
}

.giftCard__picker input {
    padding-right: 44px;
    cursor: pointer;
}

.giftCard__pickerIcon {
    position: absolute;
    right: 0;
    bottom: 11px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    cursor: pointer;
    pointer-events: none;
}

.giftCard__pickerIcon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3e%3cg fill='%23000' clip-path='url(%23a)'%3e%3cpath d='M17.708 20H2.292A2.294 2.294 0 0 1 0 17.708V3.958a2.293 2.293 0 0 1 2.292-2.291h15.416A2.293 2.293 0 0 1 20 3.958v13.75A2.294 2.294 0 0 1 17.708 20ZM2.292 2.917c-.574 0-1.042.467-1.042 1.041v13.75c0 .574.468 1.042 1.042 1.042h15.416c.575 0 1.042-.468 1.042-1.042V3.958c0-.574-.468-1.041-1.042-1.041H2.292Z'/%3e%3cpath d='M19.375 7.917H.625a.625.625 0 0 1 0-1.25h18.75a.625.625 0 0 1 0 1.25ZM4.792 5a.625.625 0 0 1-.625-.625V.625a.625.625 0 0 1 1.25 0v3.75c0 .345-.28.625-.625.625ZM15.208 5a.625.625 0 0 1-.625-.625V.625a.625.625 0 0 1 1.25 0v3.75c0 .345-.28.625-.625.625Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='a'%3e%3cpath fill='%23fff' d='M0 0h20v20H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e");
}

.giftCard__pickerIcon--time {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z' stroke='%23000' stroke-width='1.7'/%3e%3cpath d='M12 6V12L16 14' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    display: none;
}

/* flatpickr */
.flatpickr-calendar {
    width: 335px;
    padding: 16px;
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.10);
    font-family: inherit;
    background: #fff;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none;
}

.flatpickr-months {
    align-items: center;
}

.flatpickr-current-month {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    padding: 0;
    color: #000;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    transform: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    appearance: none;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: default;
}

.flatpickr-current-month .numInputWrapper {
    width: auto;
    pointer-events: none;
}

.flatpickr-current-month input.cur-year {
    width: 68px;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: inherit;
}

.flatpickr-current-month .numInputWrapper span {
    display: none;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    position: static;
    width: 16px;
    height: 30px;
    padding: 0;
    color: rgba(0, 0, 0, 0.45);
    font-size: 26px;
    line-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
}

.flatpickr-months .flatpickr-prev-month {
    margin-left: auto;
}

.flatpickr-months .flatpickr-next-month {
    margin-right: 0;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: #000;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    display: none;
}

.flatpickr-months .flatpickr-prev-month.flatpickr-disabled {
    display: block;
    opacity: 0;
}

.flatpickr-prev-month {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none' viewBox='0 0 12 7'%3e%3cpath fill='%23000' fill-opacity='.5' d='M11.2 3.6V2.48H2V2.4L4.24.16V0H2.88L0 2.88v.32l2.88 2.88h1.36v-.16L2 3.68V3.6h9.2Z'/%3e%3c/svg%3e");
}

.flatpickr-next-month {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none' viewBox='0 0 12 7'%3e%3cpath fill='%23000' fill-opacity='.5' d='M0 3.6V2.48h9.2V2.4L6.96.16V0h1.36l2.88 2.88v.32L8.32 6.08H6.96v-.16L9.2 3.68V3.6H0Z'/%3e%3c/svg%3e");
}

.flatpickr-weekdays {
    height: auto;
    margin-bottom: 10px;
}

.flatpickr-weekdaycontainer {
    width: 100%;
}

span.flatpickr-weekday {
    color: rgba(0, 0, 0, 0.50);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    height: 24px;
}

.flatpickr-days {
    width: 100%;
}

.dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    gap: 10px 0;
    display: grid;
    grid-template-columns: repeat(7, 24px);
    width: 100%;
    justify-content: space-between;
}

.flatpickr-rContainer {
    width: 100%;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer {
    display: grid;
    grid-template-columns: repeat(7, 24px);
    width: 100%;
    justify-content: space-between;
}

.flatpickr-day {
    max-width: none;
    height: 24px;
    border: 0;
    border-radius: 0;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    display: block;
    text-align: center;
    width: 100%;
}

.flatpickr-day:hover {
    background: #000;
    color: #fff;
    border-color: transparent;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(0, 0, 0, 0.22);
    background: transparent;
}

.flatpickr-day.prevMonthDay {
    opacity: 0;
}

.flatpickr-day.nextMonthDay {
    display: none;
}

.flatpickr-day.today {
    /* border: 0; */
}

.flatpickr-day.today:hover {
    background: #000;
    color: #fff;
    border-color: transparent;
}

.flatpickr-current-month span.cur-month {
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.flatpickr-current-month input.cur-year {
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
}

.flatpickr-current-month input.cur-year {
    width: 45px;
}

.flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.flatpickr-months .flatpickr-month {
    height: 30px;
    display: flex;
    align-items: center;
}

.flatpickr-months {
    display: grid;
    grid-template-columns: 1fr 16px 16px;
    gap: 12px;
    margin-bottom: 12px;
}

.flatpickr-month {
    order: -1;
}

.flatpickr-current-month span.cur-month:hover {
    background: transparent;
}

.flatpickr-current-month .numInputWrapper {
    display: flex;
    height: 20px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.flatpickr-calendar .flatpickr-day.selected {
    box-shadow: none;
}

/* time picker */
.flatpickr-calendar.hasTime.noCalendar {
    width: auto;
    padding: 16px;
}

.flatpickr-time {
    height: 52px;
    max-height: 52px;
    border: 0;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    height: 100%;
    line-height: 100%;
    color: #000;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    border: 1px solid #000;
}

.flatpickr-time input.flatpickr-hour {
    font-weight: 500;
}

.flatpickr-time .numInputWrapper span.arrowUp,
.flatpickr-time .numInputWrapper span.arrowDown {
    border: 0;
    display: none;
}

.flatpickr-time .numInputWrapper span.arrowUp::after,
.flatpickr-time .numInputWrapper span.arrowDown::after {
    border: 0;
}

.flatpickr-time.time24hr .numInputWrapper {
    flex: none;
    width: 32px;
    height: 32px;
    float: none;
    display: flex;
}

.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: none;
    height: auto;
    max-height: unset;
}
.flatpickr-time input:hover, .flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:focus {
    background: transparent;
    border: 1px solid #000;
}
.flatpickr-time .flatpickr-time-separator, .flatpickr-time .flatpickr-am-pm {
    line-height: 1;
    width: unset;
}
.numInputWrapper:hover {
    background: transparent;
}

@media (max-width: 400px) {
    .flatpickr-calendar {
        width: calc(100vw - 40px);
    }
}




/* FAQ */
.giftCard__faq {
    max-width: 610px;
    margin: 0 auto 80px;
}

.giftCard__faqItem {
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.giftCard__faqHead {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    text-transform: uppercase;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.5px;
    position: relative;
}

.giftCard__faqHead::before {
    content: '';
    width: 24px;
    height: auto;
    aspect-ratio: 1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' fill='none' viewBox='0 0 7 12'%3e%3cpath fill='%23000' d='M2.55 0h1.53v9.18h.085L6.46 6.885h.17v1.87L3.485 11.9h-.34L0 8.755v-1.87h.17L2.465 9.18h.085V0Z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.giftCard__faqItem.is-active .giftCard__faqHead::before {
    transform: translateY(-50%) rotate(180deg);
}

.giftCard__faqBody {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.giftCard__faqContent {
    padding-bottom: 24px;
    color: #000;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.37;
}

.giftCard__faqContent >*:first-child {
    margin-top: 0 !important;
}

.giftCard__faqContent >*:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 1499px) {
    .giftCard__cardWrap.is-left {
        transform: translateX(-54%) rotate(-10deg);
    }
}

@media (max-width: 1150px) {
    .giftCard__cardWrap.is-left {
        width: 340px;
    }
}

@media (max-width: 991px) {
    .giftCard__cardWrap.is-left {
        width: 480px;
        top: 140px;
    }

    .giftCard__stepContent {
        max-width: 58vw;
        width: 100%;
        margin-left: auto;
        min-height: 300px;
    }

    .giftCard__recipientFields,
    .giftCard__deliveryFields {
        margin: 70px 0 0;
        max-width: 100%;
    }

    .giftCard__btn {
        margin-top: 65px;
    }

    .giftCard__step {
        max-width: 100%;
    }

    .giftCard__paymentItem {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .giftCard__navWrapper {
        border: none;
    }

    .giftCard__faq {
        max-width: 100%;
    }

    .giftCard__body {
        max-width: 100%;
        padding-top: 30px;
    }

    .giftCard__mainTitle {
        max-width: 100%;
    }

    .giftCard__nav {
        padding: 30px 20px 0;
    }
}

@media (max-width: 720px) {
    .giftCard__body {
        min-height: auto;
        padding-bottom: 40px;
    }

    .giftCard__btn {
        margin-top: 40px;
    }

    .giftCard__stepContent {
        max-width: 100%;
        margin-left: 0;
        min-height: unset;
    }

    .giftCard__cardWrap.is-left {
        position: static;
        transform: none;
        width: 100%;
        margin: 0 auto 30px;
    }

    .giftCard__cardWrap.is-moving-to-final {
        position: static;
        transform: none;
        width: 100%;
        margin: 0 auto 30px;
    }

    .giftCard__cardWrap.is-final {
        position: relative;
        width: 100%;
        margin-bottom: 0;
        transform: none;
    }

    .giftCard__finalCardSlot {
        width: 100%;
        transform: none;
    }

    .giftCard__cardMotion {
        display: none;
    }

    .giftCard__body.is-card-left .giftCard__cardWrap:not(.is-final) {
        display: none;
    }

    .giftCard__body.is-card-left .giftCard__finalCardSlot .giftCard__cardWrap,
    .giftCard__cardWrap.is-final {
        display: block;
    }

    .giftCard__stepHeader {
        margin-bottom: 30px;
    }

    .giftCard__recipientFields,
    .giftCard__deliveryFields {
        margin-top: 55px;
    }
}

@media (max-width: 575px) {
    .giftCard__final {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
    }

    .giftCard__finalCardSlot {
        aspect-ratio: unset;
    }

    .giftCard__summaryItem {
        font-size: 17px;
    }

    .giftCard__summary {
        gap: 10px;
    }

    .giftCard__payment {
        margin-top: 36px;
    }
}

/* giftCardFinal */
.giftCardFinal {
    margin: 120px 0;
}

.giftCardFinal__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.giftCardFinal__img {
    margin-bottom: 30px;
    max-width: 555px;
    height: auto;
}

.giftCardFinal__img img {
    display: block;
    width: 100%;
    height: auto;
}

.giftCardFinal__title {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

.giftCardFinal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 335px;
    max-width: 100%;
    min-height: 50px;
    margin: 40px auto 0;
    border: 0;
    background: #000;
    color: #FFF;
    padding: 0 24px;
    cursor: pointer;
    text-align: center;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.giftCardFinal__btn:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .giftCardFinal {
        margin: 100px 0;
    }
}

@media (max-width: 720px) {
    .giftCardFinal {
        margin: 80px 0;
    }

    .giftCardFinal__btn {
        margin-top: 25px;
    }
}
/* giftCardFinal */

/* giftCardReceived */
.giftCardReceived {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 120px);
}

.giftCardReceived__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f2f5;
}

.giftCardReceived__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.giftCardReceived__scene {
    position: relative;
    z-index: 2;
    width: 420px;
    height: 265px;
    perspective: 900px;
}

.giftCardReceived__cardTilt {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.giftCardReceived__card3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: giftCardReceivedRotate 8s ease-in-out infinite;
    cursor: grab;
}

.giftCardReceived__card3d:active {
    cursor: grabbing;
}

.giftCardReceived__cardFace {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    backface-visibility: hidden;
}

.giftCardReceived__cardFront {
    background: #111;
    overflow: hidden;
    background-image: url("/gift/img/gift-card.svg");
    background-size: cover;
    background-position: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.giftCardReceived__cardFront::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -30%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: giftCardReceivedGlare 8s ease-in-out infinite;
}

.giftCardReceived__cardShadow {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: calc(50% - 175px);
    width: 280px;
    height: 40px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
    animation: giftCardReceivedShadow 8s ease-in-out infinite;
}

.giftCardReceived__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 580px;
    padding: 60px 20px 60px 110px;
}

.giftCardReceived__title {
    margin: 0 0 28px;
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

.giftCardReceived__text {
    margin: 0 0 32px;
    color: #000;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

.giftCardReceived__text >*:first-child {
    margin-top: 0 !important;
}

.giftCardReceived__text >*:last-child {
    margin-bottom: 0 !important;
}

.giftCardReceived__info {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.giftCardReceived__label {
    color: rgba(0, 0, 0, 0.50);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.1;
}

.giftCardReceived__value {
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

.giftCardReceived__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 335px;
    min-height: 50px;
    padding: 10px 24px;
    background: #000;
    color: #FFF;
    text-align: center;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.giftCardReceived__btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.giftCardReceived__btn:active {
    transform: translateY(0);
}

@keyframes giftCardReceivedRotate {
    0% {
        transform: rotateY(-20deg) rotateX(8deg);
    }

    25% {
        transform: rotateY(15deg) rotateX(-5deg);
    }

    50% {
        transform: rotateY(25deg) rotateX(8deg);
    }

    75% {
        transform: rotateY(-10deg) rotateX(-4deg);
    }

    100% {
        transform: rotateY(-20deg) rotateX(8deg);
    }
}

@keyframes giftCardReceivedGlare {
    0% {
        top: -20%;
        left: 10%;
        opacity: 0.7;
    }

    25% {
        top: -30%;
        left: 50%;
        opacity: 0.5;
    }

    50% {
        top: 20%;
        left: 60%;
        opacity: 0.3;
    }

    75% {
        top: 10%;
        left: 5%;
        opacity: 0.5;
    }

    100% {
        top: -20%;
        left: 10%;
        opacity: 0.7;
    }
}

@keyframes giftCardReceivedShadow {
    0%,
    100% {
        transform: translateX(-50%) scaleX(0.9);
        opacity: 0.7;
    }

    50% {
        transform: translateX(-50%) scaleX(1.05);
        opacity: 0.4;
    }
}

@media (max-width: 991px) {
    .giftCardReceived {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-bottom: 80px;
    }

    .giftCardReceived__media {
        min-height: 420px;
    }

    .giftCardReceived__content {
        max-width: 430px;
        padding: 40px 0 0;
        margin: 0 auto;
    }

    .giftCardReceived__btn {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .giftCardReceived__media {
        min-height: 360px;
    }

    .giftCardReceived__scene {
        width: 270px;
        height: 160px;
    }

    .giftCardReceived__cardShadow {
        bottom: calc(50% - 125px);
        width: 190px;
    }

    .giftCardReceived__content {
        padding: 38px 20px 60px;
    }

    .giftCardReceived__title {
        font-size: 22px;
    }

    .giftCardReceived__text {
        font-size: 15px;
    }

    .giftCardReceived__value {
        font-size: 22px;
    }

    .giftCardReceived__info {
        gap: 14px;
    }
}
/* giftCardReceived */

