.ytr-recipe {
    --ytr-accent: var(--brand-color, var(--tie-buttons-color, currentColor));
    --ytr-accent-strong: var(--dark-brand-color, var(--tie-buttons-hover-color, var(--ytr-accent)));
    --ytr-on-accent: var(--tie-buttons-text, #fff);
    --ytr-rule: color-mix(in srgb, var(--ytr-accent) 24%, transparent);
    --ytr-surface: color-mix(in srgb, var(--ytr-accent) 4%, transparent);
    color: inherit;
}

.ytr-recipe__subtitle {
    font-size: 1.2em;
    font-weight: 600;
}

.ytr-ad-slot {
    clear: both;
    margin: 28px 0;
    text-align: center;
}

.ytr-ad-slot:empty {
    display: none;
    margin: 0;
}

.ytr-ad-slot img,
.ytr-ad-slot iframe {
    max-width: 100%;
}

.ytr-recipe__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    margin: 1.5em 0;
    border: 1px solid var(--ytr-rule, currentColor);
    border-radius: .6em;
    overflow: hidden;
}

.ytr-recipe__summary div {
    padding: .85em;
    background: var(--ytr-surface);
}

.ytr-recipe__summary dt {
    font-size: .75em;
    text-transform: uppercase;
    opacity: .7;
}

.ytr-recipe__summary dd {
    margin: .25em 0 0;
    font-weight: 700;
}

.ytr-recipe__section {
    margin: 2em 0;
}

.ytr-recipe__section h2 {
    padding-bottom: .45em;
    border-bottom: 1px solid var(--ytr-rule, currentColor);
}

.ytr-recipe__instructions li {
    padding-left: .35em;
    margin: .7em 0;
}

.ytr-recipe__video-frame {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.ytr-recipe__video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ytr-recipe details {
    padding: .7em 0;
    border-bottom: 1px solid var(--ytr-rule, currentColor);
}

.ytr-recipe summary {
    cursor: pointer;
    font-weight: 700;
    transition: color .15s ease;
}

.ytr-recipe summary:hover,
.ytr-recipe summary:focus-visible {
    color: var(--ytr-accent);
}

.ytr-rating {
    --ytr-star: #f5b301;
    --ytr-star-muted: color-mix(in srgb, currentColor 48%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 0 !important;
    margin: 2em 0;
    padding: 1.25rem 1rem .65rem !important;
    border: 1px solid var(--ytr-rule, currentColor);
    border-radius: .75em;
    background: transparent;
    text-align: center;
    box-shadow: none;
}

.ytr-rating h2 {
    order: 1;
    width: 100%;
    margin: 0 0 .55rem !important;
    padding: 0;
    border: 0;
    font-size: 1.05rem !important;
    line-height: 1.25;
}

.ytr-rating__summary {
    order: 3;
    width: 100%;
    margin: .32rem 0 0 !important;
    font-size: .8em;
    opacity: .68;
}

.ytr-rating__form {
    order: 2;
    width: 100%;
    margin: 0 !important;
}

.ytr-rating fieldset {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
}

.ytr-rating legend.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.ytr-rating__stars {
    display: flex;
    align-items: center;
    width: max-content;
    gap: .12em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.ytr-rating__star {
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    opacity: 1;
    transition: color .15s ease, transform .15s ease;
}

.ytr-rating.is-submitted .ytr-rating__star {
    cursor: default;
}

.ytr-rating__star > span[aria-hidden=true] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ytr-star-muted) !important;
}

.ytr-rating__star svg {
    display: block;
    width: 1.85rem;
    height: 1.85rem;
    overflow: visible;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill .15s ease, stroke .15s ease;
}

.ytr-rating__star:hover > span[aria-hidden=true],
.ytr-rating__star:focus-within > span[aria-hidden=true],
.ytr-rating__star.is-active > span[aria-hidden=true] {
    color: var(--ytr-star) !important;
}

.ytr-rating__star:hover svg,
.ytr-rating__star:focus-within svg,
.ytr-rating__star.is-active svg {
    fill: currentColor;
}

.ytr-rating__star:hover,
.ytr-rating__star:focus-within,
.ytr-rating__star.is-active {
    transform: translateY(-1px);
}

.ytr-rating__star input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.ytr-rating__instruction {
    margin: .12rem 0 0 !important;
    font-size: .82em;
    line-height: 1.35;
    opacity: .78;
}

.ytr-rating__message {
    order: 4;
    min-height: 0;
    width: 100%;
    margin: .28rem 0 0 !important;
    font-size: .84em;
    font-weight: 600;
}

.ytr-rating__message:empty {
    display: none;
}

@media (max-width: 767px) {
    .ytr-recipe__section h2 {
        font-size: 1.35rem !important;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .ytr-rating {
        width: 100%;
        margin: 1.5em 0;
        padding: 1.05rem .8rem .6rem !important;
    }

    .ytr-rating h2 {
        font-size: 1rem !important;
    }

    .ytr-rating__star svg {
        width: 1.7rem;
        height: 1.7rem;
    }

    .ytr-rating__instruction {
        margin-top: .1rem !important;
    }
}
