.rating-without-comment {
    padding: 24px;
    background-color: #fff;
    font-size: 18px;
    line-height: 1.77;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;

    .rating-without-comment-label {
        margin-right: 20px;
        font-weight: 500;
        margin-bottom: 0;
    }

    #rating-without-comment-container{
        line-height: 0;
        .star{
            width: 25px;
            height: 25px;
        }
    }

    .jq-ry-container {
        margin: 0;
    }

    .jq-ry-group-wrapper {
        width: auto;

        svg {
            width: 40px;
            height: 40px;
            padding: 0 4px;
        }

        .jq-ry-normal-group {
            svg {
                fill: none;
                stroke-width: 10px;
                stroke: #f39c12;
            }
        }
    }

    .rating-message-box {
        display: inline-flex;
    }

    .rating-message-icon {
        display: inline-block;
        width: 30px;
        height: 30px;
        background-color: var(--primary-color);
        mask: url("data:image/svg+xml,%3Csvg width='31' height='30' viewBox='0 0 31 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.5002 29.6663C23.6003 29.6663 30.1668 23.0998 30.1668 14.9997C30.1668 6.8995 23.6003 0.333008 15.5002 0.333008C7.39999 0.333008 0.833496 6.8995 0.833496 14.9997C0.833496 23.0998 7.39999 29.6663 15.5002 29.6663ZM21.8164 11.9006C22.314 11.3578 22.2773 10.5144 21.7345 10.0168C21.1916 9.51921 20.3482 9.55588 19.8506 10.0987L13.5002 17.0265L11.1497 14.4623C10.6521 13.9195 9.8087 13.8828 9.26587 14.3804C8.72305 14.878 8.68637 15.7214 9.18396 16.2643L12.5173 19.9006C12.7698 20.1761 13.1264 20.333 13.5002 20.333C13.8739 20.333 14.2305 20.1761 14.483 19.9006L21.8164 11.9006Z' fill='%232DB68D'/%3E%3C/svg%3E%0A");
        mask-repeat: no-repeat;
        mask-position: center;
        margin-right: 10px;
        flex-basis: 30px;
        flex-shrink: 0;
    }
}

.dr-comment-form-rating{
    display: flex;
    gap: 4px;
}

.dr-ingredients-toolbar{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    .wpdelicious-cook-mode-wrapper, .dr-ingredients-scale, input{
        margin: 0 !important;
    }
}

.dr-extended-content-content {
    margin: 0 0 24px;
}

// unit conversion
.dr-unit-conversion-wrapper {
    display: flex;

    >label {
        all: unset;

        input[type="radio"] {
            position: absolute;
            top: -999999px;
            width: 0;
            height: 0;
            visibility: hidden;
        }

        span {
            display: block;
            font-size: 14px;
            line-height: 1;
            padding: 10px 12px;
            border: 1px solid #cccccc;
            cursor: pointer;
            transition: all .3s ease;
        }

        &:first-child {
            span {
                border-top-left-radius: 4px;
                border-bottom-left-radius: 4px;
            }
        }

        &:last-child {
            span {
                border-top-right-radius: 4px;
                border-bottom-right-radius: 4px;
            }
        }

        &:not(:last-child) {
            span {
                border-right: 0;
            }
        }

        input[type="radio"]:checked+span {
            background-color: var(--primary-color);
            border: 1px solid var(--primary-color);
            color: #ffffff;
        }

        &:hover {
            color: var(--primary-color);
        }
    }
}

a.ingredient-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;

    &:hover {
        text-decoration: none !important;
    }
}

.dr-equipment-slider {
    .dr-es-item-wrap {
        position: relative;

        .wpd-equipment-tags {
            display: inline-block;
            background-color: #FB8C56;
            padding: 5.5px 14px;
            border-radius: 4px 20px 20px 0;
            color: #ffffff;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            line-height: 1;
            position: relative;

            position: absolute;
            left: 0;
            top: 16px;
            transform: translateX(-4px);
            display: flex;
            flex-direction: column;
            gap: 8px;

            z-index: 11;

            &::before,
            &::after {
                content: "";
                position: absolute;
                top: 100%;
                left: 0;
                width: 4px;
                height: 4px;
                background-color: #FB8C56;
            }

            &::before {
                height: 2px;
            }

            &::after {
                border-radius: 4px 0 0 4px;
                background-color: #C35824;
            }
        }
    }
}

.splide {
    height: fit-content;

    .dr-archive-single {
        width: 100%;
        padding: 0;
    }

    .splide__arrow {
        background: var(--white-color);
        width: 50px;
        height: 50px;
        opacity: 1;
        transition: 0.3s ease-in-out;
        top: 38%;
        box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.04);
        color: var(--primary-color);

        &:hover {
            background: var(--primary-color);
            color: var(--white-color);
            opacity: 1 !important;
        }

        svg {
            width: 20px;
            height: 15px;
        }

        &--prev {
            left: -25px;
        }

        &--next {
            right: -25px;
        }
    }

    .dr-quipment-img-wrap {
        .dr-img img {
            aspect-ratio: 4/3;
            object-fit: contain;
        }
    }
    .dr-equipment-title-wrap{
        .dr-btn{
            i svg{
                vertical-align: middle;
            }
        }
    }
}

// TODO: need to create its own file

.wpd-related-recipes{
    .dr-related-recipes__title{
        margin-top: 32px !important;
    }
}

.dr-related-recipes{
    float: left;
    max-width: 420px;
    width: 100%;
    margin: 0 0 30px;
    @media(min-width: 768px){
        margin-right: 30px;
    }
    .dr-related-recipes__title{
        margin-top: 0;
    }
    .dr-related-recipes__list{
        margin: 0 -30px;
        display: flex;
        height: auto;
        .dr-related-recipe-item{
            display: flex;
            &:first-child{
                padding-top: 0;
            }
            &:last-child{
                padding-bottom: 0;
            }
            .dr-recipe-fig{
                > a{
                    display: block;
                    padding-top: 100%;
                    position: relative;
                    img, svg{
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        position: absolute;
                        top: 0;
                        left: 0;
                    }
                }
            }
            .dr-recipe-details{
                .dr-recipe-title{
                    margin-top: 0;
                    font-size: 1.11em !important;
                    font-weight: 600;
                    a{
                        color: inherit;
                        text-decoration: none;
                        &:hover{
                            color: var(--primary-color);
                        }
                    }
                }
            }
        }
    }
    &.full-width{
        float: none;
        max-width: 100%;
        @media(min-width: 768px){
            margin: 0;
        }
        .dr-related-recipes__list{
            @media(min-width: 768px){
                .dr-related-recipe-item{
                    flex: 0 0 50%;
                    max-width: 50%;
                    &:nth-child(2n){
                        border-left: 1px solid rgba(var(--primary-color-rgb), .1);
                    }
                    &:nth-child(2){
                        padding-top: 0;
                    }
                    &:nth-last-child(2){
                        padding-bottom: 0;
                    }
                }
            }
        }
    }
}