/* Best Products For You Quiz (d9311dc8-465a-4908-a42d-4e92e9d9fdd6) */
.wrapper:has(div.okeConnect.okeQuizzes.okeQuizzes) {
    padding: 0;
    width: 100%;
}

div.okeConnect.okeQuizzes.okeQuizzes {
    .l-headerImage:not(:has(#question-2-image)):not(:has(#question-5-image)):not(:has(#question-7-image)):not(:has(~.l-content .c-pageContent.c-pageContent--start)),
    .l-products .l-productRow-item:empty,
    .c-icon.c-resultButton-icon {
        display: none;
    }

    /* Text Styling */
    p {
        line-height: 1.4;
    }

    .c-title {
        line-height: 1.2;
        margin-bottom: 12px;

        &.c-startPanel-title {
            font-size: 32px;
            margin-bottom: 0;
        }

        &.c-questions-header-title,
        &.c-resultBlock-title {
            font-size: 24px;
        }
    }

    /* Borders */
    .c-tagInput-label-image,
    .l-button-center--withDivider,
    .c-resultPanel-section,
    .l-productRow--list,
    .l-productRow--list:last-child {
        border: 0;
    }

    /* Buttons */
    .c-button {
        padding: 1rem;
        text-transform: uppercase;
    }

    /* Inputs */
    .c-input {
        height: auto;
        padding: 1rem;
    }

    /* Start Panel */
    .c-startPanel {
        padding: 40px;
    }

    .c-startPanel-subtitle.c-subtitle {
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .c-startPanel-button.c-button {
        font-size: 0;
        margin-bottom: 0;
        min-width: 155px;

        &::before {
            content: "Let's go";
            display: block;
            font-size: var(--oke-quiz-button-font-size);
        }
    }

    /* Questions */
    .c-questionsForm {
        padding: 40px 16px;
        position: relative;

        .c-questions {
            margin-bottom: 40px;
            padding: 0;
        }

        .c-tagInput-input:checked+.c-tagInput-label {
            border-color: #009383;
        }

        .c-terms {
            font-size: calc(var(--oke-quiz-subtitle-font-size) - 2px);
            margin: 0 0 40px;

            a {
                text-decoration: underline;
            }
        }
    }

    .c-tagInput-label {
        min-height: unset !important;
        padding: 10px;

        &:hover {
            border-color: #009383;
        }

        .c-tagInput-label-image {
            margin: 0;
            max-width: 100%;
        }
    }

    .c-tagInput-container--tags {
        .c-tagInput-label {
            margin-bottom: 10px;
            margin-right: 10px;
        }
    }

    /* Other */
    fieldset[aria-label="Are you following any particular diet?"],
    fieldset[aria-label="Which areas of your health are you looking to improve?"],
    fieldset[aria-label="When are you most likely to struggle with food?"] {
        .c-tagInput-tag:last-child .c-tagInput-label-text {
            display: flex;
            align-items: center;
            padding: 0;

            &::before {
                content: '';
                background-image: url("data:image/svg+xml,%3Csvg width='62' height='62' viewBox='0 0 62 62' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_6128_2061' style='mask-type:luminance' maskUnits='userSpaceOnUse' x='0' y='0' width='62' height='62'%3E%3Cpath d='M31 0C13.8792 0 0 13.8792 0 31C0 48.1208 13.8792 62 31 62C48.1208 62 62 48.1208 62 31C62 13.8792 48.1208 0 31 0Z' fill='white'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_6128_2061)'%3E%3Cpath d='M31 0C13.8792 0 0 13.8792 0 31C0 48.1208 13.8792 62 31 62C48.1208 62 62 48.1208 62 31C62 13.8792 48.1208 0 31 0Z' stroke='%23111115' stroke-width='1.46875'/%3E%3C/g%3E%3C/svg%3E%0A");
                margin-right: 12px;
                background-size: cover;
                background-repeat: no-repeat;
                height: 60px;
                width: 60px;
            }
        }
    }

    /* Alt header images */
    #question-5-image {
        content: url('https://scdn.speedsize.com/b9d9aee8-93ff-4f03-93bc-13d98a719b9f/cdn.shopify.com/s/files/1/0105/7135/0080/files/quiz_img_1.png?v=1788741087');
    }

    #question-7-image {
        content: url('https://scdn.speedsize.com/b9d9aee8-93ff-4f03-93bc-13d98a719b9f/cdn.shopify.com/s/files/1/0105/7135/0080/files/quiz_img_2.png?v=1788741086');
    }

    /* Email Question */
    fieldset[aria-label="Where should we email your results?"] {
        .c-questions-header-subtitle,
        .c-emailInput .c-checkbox-label {
            font-size: 0;
        }

        .c-questions-header-subtitle::after {
            content: "Optional";
            display: block;
            font-size: var(--oke-quiz-subtitle-font-size);
        }
    }

    .c-emailInput {
        .c-input {
            font-size: var(--oke-quiz-subtitle-font-size);

            &:focus {
                border-radius: 30px;
                box-shadow: none;
            }
        }

        .c-checkbox {
            margin-top: 20px;

            .c-checkbox-label::after {
                content: "Email me with news about promos and new product launches";
                display: block;
                font-size: var(--oke-quiz-subtitle-font-size);
            }
        }
    }

    .c-checkbox-bg {
        border-color: #000;
        border-radius: 0;
    }

    /* Nav */
    .l-button-center--withDivider {
        padding: 40px 0 20px;
    }

    .c-questionsForm .l-button-center--showBackButton {
        padding: 24px 0 0;

        .c-questionsForm-back--withDefaultBorder,
        .c-questionsForm-back--withDefaultBorder:hover {
            box-shadow: none;
        }
    }

    .c-questionNavigationButtons {
        .l-button-holder.u-content--centered {
            margin: 40px 0 0;
            max-width: 100%;
        }

        .c-button,
        .c-button.c-questionsForm-back,
        .c-button:hover,
        .c-button:focus {
            background-color: var(--oke-quiz-button-background-color);
            color: var(--oke-quiz-button-font-text-color);
            display: flex !important;
            gap: 8px;
            align-items: baseline;
            width: auto !important;
        }

        /* Progress Bar */
        .c-progressBar {
            border-radius: 30px;
            height: 8px;
            overflow: hidden;

            .c-progressBar-progress {
                border-radius: 0;
            }
        }

        .c-progressText--below.c-progressText {
            margin: 0;
            position: absolute;
            top: 22px;
        }
    }

    /* Recommendations */
    .c-resultPanel-sections {
        padding: 0 16px;
    }

    .c-resultPanel-section {
        padding: 0;

        &:first-child {
            padding-top: 32px;
        }

        &:nth-last-child(2) {
            padding-bottom: 20px;

            .l-products {
                border-bottom: 1px solid #000;
                margin-bottom: 40px;
            }
        }

        &:last-child {
            padding: 0 0 40px;
        }

        .l-products {
            padding: 0 0 40px;
        }
    }

    .c-recommendedProduct-nameAndPrice {
        display: flex;

        .c-recommendedProduct-rating--grid {
            order: -1;
        }

        .c-recommendedProduct-name,
        .c-resultProductRating-reviewsCount,
        .c-recommendedProduct-description,
        .c-recommendedProduct-price span {
            font-size: var(--oke-quiz-subtitle-font-size);
        }

        .c-recommendedProduct-name {
            font-weight: 700;
        }
    }

    .c-recommendedProduct-variantSelector-optionsLabel {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .c-recommendedProduct-variantSelector-opener {
        position: relative;

        .c-recommendedProduct-variantSelector {
            background-image: url("data:image/svg+xml,%3Csvg width='13' height='8' viewBox='0 0 13 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.3535 0.353516L6.35352 6.35352L0.353516 0.353516' stroke='black'/%3E%3C/svg%3E%0A");
            background-repeat: no-repeat;
            background-size: 12px;
            border-color: #d8d3ca;
            border-radius: 12px;
        }
    }

    .c-resultButton {
        &.c-resultButton-secondary {
            width: 100%;
        }

        &.c-resultButton-primary {
            max-width: calc(100% - 24px);
            width: 100% !important;
        }
    }

    /* Recommendations > Coupon */
    .c-resultBlock-coupon {
        background-color: #f9f8f6;
        border-radius: 12px;
        padding: 40px;

        .c-coupon-panel {
            margin-top: 0;

            .c-coupon-reward-title {
                font-size: 20px;
                line-height: 1;
                margin-bottom: 20px;
                padding: 0;
            }

            .c-coupon-reward-obscured {
                .c-coupon-reward-obscured-coupon {
                    background-color: #fff;
                    border: 1px solid #009383;
                    border-radius: 12px;
                }

                svg {
                    border-radius: 0 12px 12px 0;

                    path {
                        fill: #009383;
                        stroke: none;
                    }
                }
            }

            .c-coupon-reward-code--clipboardAvailable.c-coupon-reward-code {
                background-color: #fff;
                border: 1px solid #000;
                border-radius: 12px;
            }

            .c-coupon-reward-description {
                margin-top: 20px;
                padding: 0;

                p {
                    line-height: 1;
                }
            }
        }

        .c-submitEmail {
            margin: 0;

            label {
                margin: 20px 0;
            }
        }

        .c-input {
            background-color: transparent;
        }
    }

    /* Media Queries */
    @media all and (min-width: 769px) {
        .c-startPanel {
            max-width: 500px;
            padding: 80px 0;

            .c-startPanel-title.c-title {
                font-size: 48px;
            }
        }

        .c-resultBlock-title.c-title,
        .c-questions-header-title.c-title {
            font-size: 32px;
        }

        .c-questions,
        .c-questions .c-questions-question,
        .u-content--centered,
        .c-questionNavigationButtons {
            max-width: 600px;
        }

        .c-resultPanel-sections {
            max-width: 1200px;
        }

        .c-resultBlock-coupon {
            max-width: 1200px;

            .c-coupon-panel .c-coupon-reward-title {
                font-size: 24px;
            }

            .c-submitEmail {
                max-width: 500px;
                margin: auto;

                label {
                    font-size: 20px;
                }

                .c-submitEmail-inputs {
                    display: flex;
                    gap: 8px;

                    .c-input {
                        max-width: 400px;
                    }

                    .c-submitEmail-inputs-button {
                        position: relative;
                        height: auto;
                    }
                }
            }
        }

        .c-recommendedProduct-nameAndPrice {
            text-align: left;

            .c-recommendedProduct-name {
                font-size: 20px;
            }
        }

        .c-resultProductRating {
            display: flex;
            flex-direction: row;
            gap: 8px;
            align-items: center;
            justify-content: left;
            margin: 0 0 10px;

            .c-resultProductRating-reviewsCount {
                margin: 0;
            }
        }

        .c-resultButton.c-resultButton-primary {
            max-width: calc(33% - 24px);
        }
    }

    @media all and (max-width: 959px) {
        .c-header-image {
            height: 250px !important;
        }

        .c-tagInput-label-image,
        .c-tagInput-tag .c-tagInput-label-text::before {
            height: 40px !important;
            width: 40px !important;
        }
    }
}

/* Pop-up / Dropdown */
div[oke-toast] {
    .c-toast.c-toast--positive {
        background-color: #ebf2f0;
        color: #000;
    }
}

div.okeConnect {
    .c-icon--success {
        fill: #000;
    }
}