/**
 * Bouquet assistant: homepage promo, dialog, steps and recommendations.
 */
.cf-assistant-section {
    padding: 44px 0 38px;
}

.cf-assistant-promo {
    position: relative;
    display: grid;
    min-height: 310px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    border-radius: 28px;
    background:
        radial-gradient(circle at 84% 32%, rgba(255, 255, 255, .88), transparent 29%),
        linear-gradient(135deg, #f7d5dd 0%, #f8e9ec 55%, #fff7f8 100%);
    box-shadow: 0 22px 60px rgba(126, 72, 87, .12);
}

.cf-assistant-promo__copy {
    position: relative;
    z-index: 2;
    max-width: 730px;
    padding: 52px 56px;
}

.cf-assistant-eyebrow {
    color: #ad5268;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cf-assistant-promo h2 {
    margin: 10px 0 13px;
    color: #332d2f;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.06;
}

.cf-assistant-promo p {
    max-width: 600px;
    margin: 0;
    color: #6e6266;
    font-size: 16px;
    line-height: 1.65;
}

.cf-assistant-open {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 25px;
    margin-top: 26px;
    border: 0;
    border-radius: 999px;
    background: #302a2c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.cf-assistant-open:hover {
    background: #a94f65;
    transform: translateY(-2px);
}

.cf-assistant-open span {
    font-size: 20px;
    line-height: 1;
}

.cf-assistant-promo__visual {
    position: relative;
    min-height: 310px;
}

.cf-assistant-promo__flower {
    position: absolute;
    right: 11%;
    bottom: -45px;
    color: rgba(185, 93, 116, .22);
    font-size: 260px;
    line-height: 1;
    transform: rotate(-13deg);
}

.cf-assistant-promo__bubble {
    position: absolute;
    z-index: 2;
    padding: 11px 17px;
    border: 1px solid rgba(226, 177, 189, .7);
    border-radius: 999px;
    background: rgba(255, 255, 255, .84);
    color: #7d5962;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(104, 65, 75, .09);
}

.cf-assistant-promo__bubble--one {
    top: 75px;
    right: 28%;
}

.cf-assistant-promo__bubble--two {
    top: 136px;
    right: 8%;
}

.cf-assistant-modal {
    position: fixed;
    z-index: 100020;
    inset: 0;
    display: grid;
    visibility: hidden;
    padding: 24px;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.cf-assistant-modal.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cf-assistant-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(31, 25, 27, .7);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.cf-assistant-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(960px, 100%);
    height: min(780px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    padding: 38px 42px 32px;
    overflow: hidden;
    flex-direction: column;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 35px 90px rgba(40, 27, 31, .3);
    transform: translateY(16px) scale(.985);
    transition: transform .25s ease;
}

.cf-assistant-modal.is-active .cf-assistant-dialog {
    transform: none;
}

body.cf-assistant-opened {
    overflow: hidden;
}

.cf-assistant-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #eadfe2;
    border-radius: 50%;
    background: #fff;
    color: #5a5053;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.cf-assistant-header {
    flex: 0 0 auto;
    padding-right: 42px;
}

.cf-assistant-header h2 {
    margin: 7px 0 20px;
    color: #312b2d;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 400;
    letter-spacing: -.025em;
}

.cf-assistant-progress {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1e7e9;
}

.cf-assistant-progress__bar {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d58598, #b6576f);
    transition: width .3s ease;
}

.cf-assistant-counter {
    display: block;
    margin-top: 8px;
    color: #9a8d91;
    font-size: 11px;
}

.cf-assistant-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    margin-top: 28px;
}

.cf-assistant-step {
    min-height: 0;
    flex: 1;
    padding-right: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #d8a8b4 #f7eff1;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    animation: cf-assistant-in .25s ease;
}

.cf-assistant-step::-webkit-scrollbar,
.cf-assistant-results::-webkit-scrollbar {
    width: 6px;
}

.cf-assistant-step::-webkit-scrollbar-track,
.cf-assistant-results::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #f7eff1;
}

.cf-assistant-step::-webkit-scrollbar-thumb,
.cf-assistant-results::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d8a8b4;
}

@keyframes cf-assistant-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: none; }
}

.cf-assistant-step h3,
.cf-assistant-results h3 {
    margin: 0;
    color: #342e30;
    font-size: 25px;
    font-weight: 500;
}

.cf-assistant-step > p,
.cf-assistant-results__heading > p {
    margin: 7px 0 22px;
    color: #897d81;
    font-size: 14px;
}

.cf-assistant-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.cf-assistant-option {
    position: relative;
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid #eadfe2;
    border-radius: 13px;
    background: #fff;
    color: #534a4d;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cf-assistant-option:hover {
    border-color: #d8a8b4;
    background: #fff9fa;
    transform: translateY(-1px);
}

.cf-assistant-option.is-selected {
    border-color: #ba6076;
    background: #fff1f4;
    color: #8e4054;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(186, 96, 118, .1);
}

.cf-assistant-option.is-selected::after {
    position: absolute;
    top: 8px;
    right: 9px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #b85d73;
    color: #fff;
    content: '✓';
    font-size: 10px;
}

.cf-assistant-option--any {
    border-style: dashed;
    color: #877b7f;
}

.cf-assistant-options--colors .cf-assistant-option i {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: 0 0 0 1px #e2d7da;
}

.cf-assistant-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid #f0e8ea;
}

.cf-assistant-step[hidden],
.cf-assistant-results[hidden],
.cf-assistant-controls > [hidden] {
    display: none !important;
}

.cf-assistant-prev,
.cf-assistant-next,
.cf-assistant-restart,
.cf-assistant-catalog {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cf-assistant-prev,
.cf-assistant-restart {
    border: 1px solid #e5d9dc;
    background: #fff;
    color: #665b5f;
}

.cf-assistant-next,
.cf-assistant-catalog {
    border: 1px solid #302a2c;
    background: #302a2c;
    color: #fff;
}

.cf-assistant-next {
    min-width: 150px;
    margin-left: auto;
}

.cf-assistant-next:disabled,
.cf-assistant-prev:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.cf-assistant-catalog {
    margin-left: auto;
}

.cf-assistant-loading {
    display: flex;
    min-height: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 13px;
    flex-direction: column;
    color: #6d6265;
}

.cf-assistant-loading[hidden] {
    display: none;
}

.cf-assistant-loading span {
    width: 38px;
    height: 38px;
    border: 3px solid #f0dce1;
    border-top-color: #b95f75;
    border-radius: 50%;
    animation: cf-assistant-spin .75s linear infinite;
}

@keyframes cf-assistant-spin {
    to { transform: rotate(360deg); }
}

.cf-assistant-results {
    min-height: 0;
    flex: 1;
    padding-right: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #d8a8b4 #f7eff1;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    animation: cf-assistant-in .25s ease;
}

.cf-assistant-results__heading {
    margin-bottom: 22px;
    text-align: center;
}

.cf-assistant-results__products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cf-assistant-product {
    overflow: hidden;
    border: 1px solid #eee4e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(74, 52, 58, .06);
}

.cf-assistant-product__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f7f4f4;
}

.cf-assistant-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.cf-assistant-product:hover .cf-assistant-product__image img {
    transform: scale(1.035);
}

.cf-assistant-product__body {
    padding: 14px 15px 16px;
}

.cf-assistant-product h4 {
    min-height: 39px;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.cf-assistant-product h4 a {
    color: #3b3436;
}

.cf-assistant-product__price {
    display: block;
    min-height: 24px;
    color: #2f292b;
    font-size: 15px;
    font-weight: 700;
}

.cf-assistant-product__price del {
    margin-right: 5px;
    color: #a89da0;
    font-size: 12px;
    font-weight: 400;
}

.cf-assistant-product__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    color: #a34c62;
    font-size: 12px;
    font-weight: 700;
}

.cf-assistant-results__empty {
    grid-column: 1 / -1;
    padding: 35px 20px;
    border-radius: 14px;
    background: #fff7f8;
    color: #62575b;
    text-align: center;
}

.cf-assistant-results__empty p {
    margin: 6px 0 0;
}

@media (max-width: 767px) {
    .cf-assistant-section {
        padding: 30px 0;
    }

    .cf-assistant-promo {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .cf-assistant-promo__copy {
        padding: 34px 28px 38px;
    }

    .cf-assistant-promo h2 {
        font-size: 30px;
    }

    .cf-assistant-promo__visual {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 150px;
        min-height: 130px;
        opacity: .65;
    }

    .cf-assistant-promo__flower {
        right: -18px;
        bottom: -25px;
        font-size: 150px;
    }

    .cf-assistant-promo__bubble {
        display: none;
    }

    .cf-assistant-modal {
        align-items: end;
        padding: 0;
    }

    .cf-assistant-dialog {
        width: 100%;
        height: calc(100vh - 18px);
        height: calc(100dvh - 18px);
        max-height: calc(100vh - 18px);
        max-height: calc(100dvh - 18px);
        padding: 29px 20px 22px;
        border-radius: 22px 22px 0 0;
    }

    .cf-assistant-header {
        padding-right: 34px;
    }

    .cf-assistant-header h2 {
        margin-bottom: 15px;
        font-size: 27px;
    }

    .cf-assistant-form {
        margin-top: 22px;
    }

    .cf-assistant-step {
        min-height: 0;
    }

    .cf-assistant-step h3,
    .cf-assistant-results h3 {
        font-size: 22px;
    }

    .cf-assistant-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .cf-assistant-option {
        min-height: 58px;
        padding: 10px;
        font-size: 12px;
    }

    .cf-assistant-results__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cf-assistant-product__body {
        padding: 11px 11px 13px;
    }

    .cf-assistant-product h4 {
        min-height: 52px;
        font-size: 12px;
    }

    .cf-assistant-controls {
        position: static;
        z-index: 3;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 14px 0 max(2px, env(safe-area-inset-bottom));
        background: #fff;
    }

    .cf-assistant-prev,
    .cf-assistant-next,
    .cf-assistant-restart,
    .cf-assistant-catalog {
        width: 100%;
        min-height: 44px;
        padding: 9px 16px;
        font-size: 12px;
        margin-left: 0;
        text-align: center;
    }

    .cf-assistant-next {
        min-width: 0;
        margin-left: 0;
    }
}

@media (max-width: 390px) {
    .cf-assistant-options {
        grid-template-columns: 1fr;
    }

    .cf-assistant-controls {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .cf-assistant-controls .cf-assistant-restart,
    .cf-assistant-controls .cf-assistant-catalog {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 11px;
    }
}
