:root {
    --swiper-theme-color: #F25F18;
    --swiper-pagination-bullet-inactive-color: #F25F18;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wizard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    line-height: 1;
    transform: translateX(100%);

    --wizard-step-width: 74px;
    --wizard-step-color-active: #38369A;

    --swiper-navigation-size: 22px;
    --swiper-theme-color: #000000;
}

.open-wizard .wizard {
    transform: translateX(0);
}

.wizard-blur {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    z-index: 100;
    transition: opacity 1000ms;
}

.open-wizard .wizard-blur {
    opacity: 1;
}

.wizard-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 630px;
    height: 100%;
    z-index: 101;
    background: #F2F5F7;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-bottom: env(safe-area-inset-bottom);
}

.open-wizard .wizard-wrap {
    transform: translateX(0);
}

.wizard-container {
    position: relative;
    z-index: 103;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 3px 10px 0 rgba(41, 38, 34, 0.1);
    background: #F2F5F7;
}

.wizard-container > div {
    width: 100%;
}

.wizard-top {
    position: relative;
    font-size: clamp(1.25rem, 0.8895rem + 0.5814vw, 1.5rem);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 35px;
}

.wizard-close {
    position: absolute;
    top: 10px;
    right: 30px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.25s;
}

.wizard-close:hover {
    opacity: 0.5;
}

.wizard-close svg {
    width: 60%;
    height: 60%;
}

.wizard-steps {
    position: relative;
    background: #DADFF7;
    padding: 7px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: var(--wizard-step-width);
}

.wizard-steps-back {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.wizard-steps-back:hover {
    color: var(--nd-color-orange);
}

.wizard-steps-back svg {
    margin-top: -2px;
}

body.rtl .wizard-steps-back svg {
    transform: scale(-1, 1);
}

.wizard-steps span {
    position: relative;
    display: inline-flex;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
}

.wizard-steps span.active {
    background-color: var(--wizard-step-color-active);
    transition: 0.5s background-color 0.4s;
}

.wizard-steps span:not(:first-child)::before,
.wizard-steps span:not(:first-child)::after {
    content: "";
    width: var(--wizard-step-width);
    height: 1px;
    background-color: #ffffff;
    position: absolute;
    top: calc(50% - 1px);
    left: calc(var(--wizard-step-width) * -1);
}

body.rtl .wizard-steps span:not(:first-child)::before,
body.rtl .wizard-steps span:not(:first-child)::after {
    left: auto;
    right: calc(var(--wizard-step-width) * -1);
}

.wizard-steps span:not(:first-child)::after {
    width: 0;
    background-color: var(--wizard-step-color-active);
    transition: width 0.4s;
}

.wizard-steps span.active::after {
    width: var(--wizard-step-width);
}

.wizard-spinner {
    flex: 1;
}

.wizard-spinner span {
    color: var(--nd-color-orange);
}

.wizard-content {
    padding: 45px 65px;
    flex: 1;
}

.wizard-content-title {
    text-align: center;
    text-wrap: balance;
    margin-bottom: 30px;
}

.wizard-categories {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wizard-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 3px 10px 0 rgba(41, 38, 34, 0.1);
    transition: border-color 0.4s;
}

.wizard-step-1 .wizard-cat-item {
    width: 100%;
}

.wizard-step-2 .wizard-cat-item {
    width: calc(50% - 7.5px);
}

.wizard-cat-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fcd7c5;
}

.wizard-cat-item-icon img {
    max-width: 24px;
    max-height: 24px;
}

.wizard-cat-item:hover {
    border-color: var(--nd-color-orange);
    cursor: pointer;
}

.wizard-cat-item-name {
    font-size: 16px;
    font-weight: 600;
}

.wizard-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 101;
    transform: translateX(-100%);
    width: 100%;
    max-width: 570px;
    background: #ffffff;
    height: 100vh;
    transition: transform 0.3s ease-in-out;
}

.wizard-preview-top {
    position: relative;
    padding: 40px 30px;
    font-weight: 700;
    border-bottom: 1px solid var(--nd-color-orange);
    font-size: 20px;
    text-wrap: balance;
}

.wizard-preview-title {
    display: flex;
    align-items: center;
}

.rtl .wizard-preview-title {
    flex-direction: row-reverse;
}

.wizard-preview-close {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 35px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 3px 10px 0 rgba(41, 38, 34, 0.1);
    border-radius: 0 100px 100px 0;
}

.wizard-preview-wrap {
    height: 100vh;
    height: 100dvh; /* for iOS*/
}

.wizard-preview-wrap > div {
    width: 100%;
}

.wizard-preview-content {
    position: relative;
    flex: 1;
    padding: 35px 20px;
}

.wizard-preview-content .swiper {
    width: 100%;
    max-width: 40vh;
}

.wizard-preview-content .swiper-slide {
    background: #ffffff;
}

.wizard-swiper-navigation {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 460px;
}

.wizard-card {
    padding-bottom: 10px;
}

.wizard-card-name {
    font-size: 20px;
    text-wrap: balance;
    height: 40px;
    align-items: flex-start;
}

.wizard-card-name span {
    text-align: center;
    text-wrap: balance;
}

.wizard-card-block {
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 1px 1px 0 rgba(41, 38, 34, 0.1);
    border-radius: 16px;
    background: #F2F5F7;
    overflow: hidden;
}

/*.wizard-card-top {
    padding: 4px;
}*/

.resize-btn {
    color: #191716;
    display: inline-flex;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: color 0.25s;
}

.resize-btn:hover {
    color: var(--nd-color-orange);
}


.wizard-card-image {
    position: relative;
    padding-bottom: 140.76%;
}

.wizard-card-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

.wizard-card-price {
    font-size: 20px;
    font-weight: 700;
    margin-top: 30px;
}

.wizard-card-price-text {
    margin-top: 10px;
}

.wizard-preview-footer {
    display: flex;
    border-top: 1px solid var(--nd-color-orange);
}

.wizard-preview-footer a {
    width: 50%;
    height: 50px;
    color: inherit;
    text-decoration: none;
    padding: 0 10px;
    line-height: 1;
}

.wizard-preview-footer a span {
    text-align: center;
    text-wrap: balance;
}

a.choose-greeting {
    background: var(--nd-color-orange);
    color: #fff;
}

@media (max-width: 1280px) {
    .wizard-preview {
        transform: translateX(0);
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        z-index: 110;
    }
}

@media (max-width: 767px) {

    .wizard-preview-top {
        padding: 30px;
    }

    .wizard-content {
        padding: 40px 15px;
    }

    .wizard-preview-content .swiper {
        max-width: 300px;
    }

    .wizard-swiper-navigation {
        top: 40%;
    }

    .wizard-preview-footer {
        flex-direction: column-reverse;
        align-items: center;
        gap: 15px;
        padding-bottom: 15px;
        border-top: none;
        margin-top: 45px;
    }

    .wizard-preview-footer a {
        width: 90%;
        border: 1px solid var(--nd-color-orange);
    }

}

@media (max-width: 567px) {
    .wizard-preview-top {
        padding: 20px;
    }

    .wizard-preview-content {
        padding-top: 20px;
        padding-bottom: 2px;
    }

    .wizard-preview-content .swiper {
        max-width: 260px;
    }

    .wizard-card-name {
        font-size: 18px;
    }

}