.yt-plus-meta-badge-host {
    position: relative;
}

.yt-plus-link-content {
    display: inline-flex;
    align-items: center;
    gap: 0.42em;
    max-width: 100%;
    vertical-align: middle;
}

.yt-plus-link-icon {
    display: inline-flex;
    flex: none;
    line-height: 1;
}

.yt-plus-link-label {
    min-width: 0;
}

/* The Navigation element applies its UIkit nav style to an internal list,
   whose explicit font size otherwise overrides the typography selected on
   the element root. Inherit preserves the exact values of the active theme. */
.yt-plus-uikit-nav-text .uk-nav {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Animated link reveal for card-like YOOtheme elements. The native link
   remains in the document flow, so revealing it never shifts the card. */
.yt-plus-link-hover-bottom {
    --yt-plus-link-hover-distance: 18px;
    --yt-plus-link-hover-duration: 280ms;
}

.yt-plus-link-hover-bottom .el-link {
    opacity: 0;
    transform-origin: center bottom;
    pointer-events: none;
    will-change: opacity, transform;
    transition:
        opacity var(--yt-plus-link-hover-duration) ease,
        transform var(--yt-plus-link-hover-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.yt-plus-link-hover-slide .el-link {
    transform: translate3d(0, var(--yt-plus-link-hover-distance), 0);
}

.yt-plus-link-hover-fade .el-link {
    transform: none;
}

.yt-plus-link-hover-scale .el-link {
    transform: translate3d(0, 6px, 0) scale(0.94);
}

.yt-plus-link-hover-bottom:hover .el-link,
.yt-plus-link-hover-bottom:focus-within .el-link,
.yt-plus-link-hover-bottom .el-link:focus-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* YOOtheme renders the visible link after title, meta and content. Where its
   content wrapper is a flex column, auto margin pins that final block to the
   lower edge. Browsers without :has() keep the native final position. */
@supports selector(div:has(> .el-link)) {
    .yt-plus-link-hover-bottom div:has(> .el-link) {
        margin-top: auto !important;
        padding-top: var(--yt-plus-link-hover-gap, 20px);
    }
}

@media (hover: none), (pointer: coarse) {
    .yt-plus-link-hover-bottom .el-link {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yt-plus-link-hover-bottom .el-link {
        transition: none;
    }
}

/* Backdrop Studio ------------------------------------------------------- */
.yt-plus-backdrop {
    --yt-plus-backdrop-factor: 1;
    --yt-plus-backdrop-tint-alpha: 0.16;
    --yt-plus-backdrop-tint-rgb: 255 255 255;
    --yt-plus-backdrop-border: 0 solid transparent;
    --yt-plus-backdrop-radius: 0;
    --yt-plus-backdrop-shadow: none;
    --yt-plus-backdrop-inner-shadow: 0 0 transparent;
}
.yt-plus-backdrop-strength-low { --yt-plus-backdrop-factor: 0.58; }
.yt-plus-backdrop-strength-high { --yt-plus-backdrop-factor: 1.5; }
.yt-plus-backdrop-opacity-subtle { --yt-plus-backdrop-tint-alpha: 0.08; }
.yt-plus-backdrop-opacity-strong { --yt-plus-backdrop-tint-alpha: 0.28; }
.yt-plus-backdrop-opacity-high { --yt-plus-backdrop-tint-alpha: 0.42; }
.yt-plus-backdrop-tint-clear { --yt-plus-backdrop-tint-alpha: 0; }
.yt-plus-backdrop-tint-dark { --yt-plus-backdrop-tint-rgb: 6 10 18; }
.yt-plus-backdrop-tint-primary { --yt-plus-backdrop-tint-rgb: 30 135 240; }
.yt-plus-backdrop-tint-cool { --yt-plus-backdrop-tint-rgb: 94 203 255; }
.yt-plus-backdrop-tint-warm { --yt-plus-backdrop-tint-rgb: 255 143 89; }
.yt-plus-backdrop-border-soft { --yt-plus-backdrop-border: 1px solid rgb(255 255 255 / 24%); }
.yt-plus-backdrop-border-defined { --yt-plus-backdrop-border: 1px solid rgb(255 255 255 / 48%); }
.yt-plus-backdrop-border-inner-light { --yt-plus-backdrop-inner-shadow: inset 0 1px 0 rgb(255 255 255 / 52%); }
.yt-plus-backdrop-radius-small { --yt-plus-backdrop-radius: 6px; }
.yt-plus-backdrop-radius-medium { --yt-plus-backdrop-radius: 14px; }
.yt-plus-backdrop-radius-large { --yt-plus-backdrop-radius: 26px; }
.yt-plus-backdrop-radius-pill { --yt-plus-backdrop-radius: 999px; }
.yt-plus-backdrop-shadow-soft { --yt-plus-backdrop-shadow: 0 8px 24px rgb(0 0 0 / 8%); }
.yt-plus-backdrop-shadow-floating { --yt-plus-backdrop-shadow: 0 16px 44px rgb(0 0 0 / 14%); }
.yt-plus-backdrop-shadow-deep { --yt-plus-backdrop-shadow: 0 24px 70px rgb(0 0 0 / 22%); }

.yt-plus-backdrop-soft { --yt-plus-backdrop-filter: blur(calc(8px * var(--yt-plus-backdrop-factor))) saturate(115%); }
.yt-plus-backdrop-frosted { --yt-plus-backdrop-filter: blur(calc(18px * var(--yt-plus-backdrop-factor))) saturate(138%) brightness(104%); }
.yt-plus-backdrop-crystal { --yt-plus-backdrop-filter: blur(calc(28px * var(--yt-plus-backdrop-factor))) saturate(165%) brightness(108%); }
.yt-plus-backdrop-vivid { --yt-plus-backdrop-filter: blur(calc(14px * var(--yt-plus-backdrop-factor))) saturate(190%) contrast(108%); }
.yt-plus-backdrop-smoked { --yt-plus-backdrop-filter: blur(calc(16px * var(--yt-plus-backdrop-factor))) saturate(85%) brightness(72%) contrast(108%); }

.yt-plus-backdrop.yt-plus-backdrop-surface,
.yt-plus-backdrop .yt-plus-backdrop-surface {
    background-color: rgb(var(--yt-plus-backdrop-tint-rgb) / var(--yt-plus-backdrop-tint-alpha));
    -webkit-backdrop-filter: var(--yt-plus-backdrop-filter);
    backdrop-filter: var(--yt-plus-backdrop-filter);
    background-clip: padding-box;
    border: var(--yt-plus-backdrop-border);
    border-radius: var(--yt-plus-backdrop-radius);
    box-shadow: var(--yt-plus-backdrop-inner-shadow), var(--yt-plus-backdrop-shadow);
    transition: backdrop-filter 320ms ease, background-color 320ms ease, box-shadow 320ms ease, transform 320ms ease;
}

.yt-plus-backdrop-hover .yt-plus-backdrop-surface:hover,
.yt-plus-backdrop-hover .yt-plus-backdrop-surface:focus-within,
.yt-plus-backdrop-hover.yt-plus-backdrop-surface:hover,
.yt-plus-backdrop-hover.yt-plus-backdrop-surface:focus-within {
    -webkit-backdrop-filter: var(--yt-plus-backdrop-filter) brightness(108%);
    backdrop-filter: var(--yt-plus-backdrop-filter) brightness(108%);
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 20px 56px rgb(0 0 0 / 18%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .yt-plus-backdrop.yt-plus-backdrop-surface,
    .yt-plus-backdrop .yt-plus-backdrop-surface {
        background-color: rgb(var(--yt-plus-backdrop-tint-rgb) / 0.72);
    }
}

@media (prefers-reduced-motion: reduce) {
    .yt-plus-backdrop-surface {
        transition: none !important;
        transform: none !important;
    }
}

.yt-plus-meta-badge-host .yt-plus-meta-badge {
    position: absolute;
    top: var(--yt-plus-meta-badge-offset, 12px);
    right: var(--yt-plus-meta-badge-offset, 12px);
    bottom: auto;
    left: auto;
    z-index: 20;
    box-sizing: border-box;
    width: auto;
    max-width: calc(100% - (var(--yt-plus-meta-badge-offset, 12px) * 2));
    min-width: 0;
    height: auto;
    min-height: 22px;
    margin: 0;
    padding: 4px 10px;
    overflow: hidden;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    text-overflow: ellipsis;
    box-shadow: 0 4px 14px rgb(0 0 0 / 14%);
    pointer-events: none;
}

.yt-plus-meta-badge-host .yt-plus-meta-badge a {
    color: inherit;
    pointer-events: auto;
}

.yt-plus-woo-product-badges ul.products li.product,
.yt-plus-woo-product-badges .products .product {
    position: relative;
}

.yt-plus-woo-product-badges .yt-plus-product-meta-badge {
    position: absolute;
    top: var(--yt-plus-meta-badge-offset, 12px);
    right: var(--yt-plus-meta-badge-offset, 12px);
    left: auto;
    z-index: 20;
    width: auto;
    height: auto;
    min-height: 22px;
    margin: 0;
    padding: 4px 10px;
    line-height: 1.25;
    white-space: normal;
    box-shadow: 0 4px 14px rgb(0 0 0 / 14%);
}

@media (max-width: 639px) {
    .yt-plus-meta-badge-host .yt-plus-meta-badge {
        --yt-plus-meta-badge-offset: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* Motion Studio --------------------------------------------------------- */
.yt-plus-motion-ready .yt-plus-motion-target {
    transition-duration: var(--yt-plus-motion-duration, 700ms);
    transition-delay: var(--yt-plus-motion-delay, 0ms);
    transition-timing-function: var(--yt-plus-motion-ease, cubic-bezier(0.22, 1, 0.36, 1));
    transition-property: opacity, translate, scale, clip-path, -webkit-clip-path;
    will-change: opacity, translate, scale, clip-path;
}
.yt-plus-motion-ready .yt-plus-motion-target.is-yt-plus-motion-settled,
.yt-plus-motion-ready .is-yt-plus-motion-settled .yt-plus-motion-target {
    will-change: auto;
}

.yt-plus-motion-ready [data-yt-plus-motion-preset="fade-up"] { opacity: 0; translate: 0 38px; }
.yt-plus-motion-ready [data-yt-plus-motion-preset="fade"] { opacity: 0; }
.yt-plus-motion-ready [data-yt-plus-motion-preset="slide-left"] { opacity: 0; translate: -54px 0; }
.yt-plus-motion-ready [data-yt-plus-motion-preset="slide-right"] { opacity: 0; translate: 54px 0; }
.yt-plus-motion-ready [data-yt-plus-motion-preset="scale"] { opacity: 0; scale: 0.92; }
.yt-plus-motion-ready [data-yt-plus-motion-preset="clip-up"] {
    opacity: 0;
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
    translate: 0 24px;
}
.yt-plus-motion-ready .yt-plus-motion-target.is-yt-plus-visible {
    opacity: 1;
    translate: none;
    scale: none;
}
.yt-plus-motion-ready [data-yt-plus-motion-preset="clip-up"].is-yt-plus-visible {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
}

/* The colored line grows behind the glyphs, including multiline titles. */
.yt-plus-title-ink.yt-plus-title-highlight {
    --yt-plus-highlight-color: #ff2bd6;
    --yt-plus-highlight-height: 38%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-image: linear-gradient(var(--yt-plus-highlight-color), var(--yt-plus-highlight-color));
    background-repeat: no-repeat;
    background-position: left 78%;
    background-size: 0 var(--yt-plus-highlight-height);
    transition: background-size 760ms cubic-bezier(0.22, 1, 0.36, 1);
}
.yt-plus-title-ink.yt-plus-title-highlight[data-direction="right"] { background-position: right 78%; }
.yt-plus-title-ink.yt-plus-title-highlight[data-direction="center"] { background-position: center 78%; }
.yt-plus-title-ink.yt-plus-title-highlight.is-yt-plus-highlighted { background-size: 100% var(--yt-plus-highlight-height); }

.yt-plus-typewriter-text::after {
    content: "";
    display: inline-block;
    width: 0.075em;
    height: 0.9em;
    margin-left: 0.08em;
    vertical-align: -0.04em;
    background: currentColor;
    animation: yt-plus-cursor 820ms steps(1, end) infinite;
}
.yt-plus-typewriter-text.yt-plus-typewriter-no-cursor::after { display: none; }
@keyframes yt-plus-cursor { 50% { opacity: 0; } }

/* Horizontal showcase: native sliders retain UIkit mechanics; grids gain
   scroll-snap and touch-friendly partial cards. */
.yt-plus-showcase {
    --yt-plus-showcase-card: clamp(280px, 38vw, 520px);
    position: relative;
}
.yt-plus-showcase[data-yt-plus-showcase-width="compact"] { --yt-plus-showcase-card: clamp(240px, 29vw, 390px); }
.yt-plus-showcase[data-yt-plus-showcase-width="wide"] { --yt-plus-showcase-card: clamp(320px, 52vw, 720px); }
.yt-plus-showcase[data-yt-plus-showcase-native-slider="false"] .yt-plus-showcase-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}
.yt-plus-showcase[data-yt-plus-showcase-native-slider="false"] .yt-plus-showcase-track::-webkit-scrollbar { display: none; }
.yt-plus-showcase[data-yt-plus-showcase-native-slider="false"] .yt-plus-showcase-track > * {
    flex: 0 0 var(--yt-plus-showcase-card);
    width: var(--yt-plus-showcase-card);
    scroll-snap-align: start;
}
.yt-plus-showcase .is-yt-plus-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.yt-plus-showcase-zoom .el-image,
.yt-plus-showcase-zoom img {
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}
.yt-plus-showcase-zoom .el-item:hover .el-image,
.yt-plus-showcase-zoom .el-item:hover img,
.yt-plus-showcase-zoom .uk-active .el-image,
.yt-plus-showcase-zoom .uk-active img { transform: scale(1.035); }
.yt-plus-showcase-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}
.yt-plus-showcase-progress {
    --yt-plus-showcase-progress: 8%;
    position: relative;
    flex: 1;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 16%, transparent);
}
.yt-plus-showcase-progress::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--yt-plus-showcase-progress);
    border-radius: inherit;
    background: currentColor;
    transition: width 350ms ease;
}
.yt-plus-showcase-arrow {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 50%;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: 25px;
    cursor: pointer;
}

/* Visual switcher with a moving capsule and three opt-in transitions. */
.yt-plus-switcher-nav {
    position: relative;
    z-index: 0;
}
.yt-plus-switcher-nav::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: var(--yt-plus-switcher-top, 0);
    left: var(--yt-plus-switcher-left, 0);
    width: var(--yt-plus-switcher-width, 0);
    height: var(--yt-plus-switcher-height, 0);
    border-radius: 999px;
    background: var(--yt-plus-switcher-background, rgba(127, 127, 127, 0.13));
    box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), width 360ms cubic-bezier(0.22, 1, 0.36, 1), left 360ms cubic-bezier(0.22, 1, 0.36, 1), top 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.yt-plus-switcher-pill .yt-plus-switcher-nav > li > a { position: relative; z-index: 1; border-radius: 999px; }
.yt-plus-switcher-pill .uk-switcher > .yt-plus-switcher-enter { animation-duration: 520ms; animation-fill-mode: both; }
.yt-plus-switcher-fade .uk-switcher > .yt-plus-switcher-enter { animation-name: yt-plus-switcher-fade; }
.yt-plus-switcher-wipe .uk-switcher > .yt-plus-switcher-enter { animation-name: yt-plus-switcher-wipe; }
.yt-plus-switcher-slide .uk-switcher > .yt-plus-switcher-enter { animation-name: yt-plus-switcher-slide; }
@keyframes yt-plus-switcher-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes yt-plus-switcher-wipe { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes yt-plus-switcher-slide { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }

@media (max-width: 639px) {
    .yt-plus-showcase { --yt-plus-showcase-card: min(84vw, 360px); }
    .yt-plus-showcase[data-yt-plus-showcase-width="compact"] { --yt-plus-showcase-card: min(76vw, 320px); }
    .yt-plus-showcase[data-yt-plus-showcase-width="wide"] { --yt-plus-showcase-card: min(92vw, 430px); }
    .yt-plus-switcher-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .yt-plus-switcher-nav::-webkit-scrollbar { display: none; }
    .yt-plus-switcher-nav > li { flex: 0 0 auto; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .yt-plus-motion-target,
    .yt-plus-title-highlight,
    .yt-plus-showcase-zoom img,
    .yt-plus-showcase-progress::after,
    .yt-plus-switcher-nav::before {
        opacity: 1 !important;
        translate: none !important;
        scale: none !important;
        transition: none !important;
        animation: none !important;
    }
    [data-yt-plus-motion-preset="clip-up"] {
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }
    .yt-plus-showcase-zoom .el-image,
    .yt-plus-showcase-zoom img {
        transform: none !important;
    }
    .yt-plus-title-highlight { background-size: 100% var(--yt-plus-highlight-height) !important; }
}
.yt-plus-icon-image-size .el-image.uk-icon,
.yt-plus-icon-image-size .el-image[uk-icon] {
    display: inline-flex;
    width: var(--yt-plus-icon-image-width) !important;
    height: var(--yt-plus-icon-image-height) !important;
    align-items: center;
    justify-content: center;
}

.yt-plus-icon-image-size .el-image.uk-icon > svg,
.yt-plus-icon-image-size .el-image[uk-icon] > svg {
    width: 100% !important;
    height: 100% !important;
}
