/* The dialog is in the browser's top layer. Neither surface participates in page layout. */
.yk-sale-dialog:not([open]), .yk-sale-trigger[hidden] { display: none !important; }
html.yk-sale-open { overflow: hidden; }
dialog.yk-sale-dialog {
    --sale-red: #941e2b;
    --sale-paper: #fffaf0;
    position: fixed;
    inset: 0;
    margin: auto;
    box-sizing: border-box;
    width: min(490px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 16px;
    background: var(--sale-paper);
    color: #342426;
    box-shadow: 0 18px 80px rgb(25 12 15 / 30%);
    text-align: start;
}
.yk-sale-dialog::backdrop { background: rgb(16 24 26 / 54%); }
.yk-sale-head {
    position: relative;
    background: repeating-radial-gradient(circle at 116% 147%, transparent 0 18px, rgb(255 225 169 / 12%) 19px 20px, transparent 21px 32px), #901c2a;
    color: #fff9e7;
    padding: 23px 28px 17px;
    border-bottom: 3px solid #dfbb73;
}
.yk-sale-head p, .yk-sale-body p { margin: 0; }
.yk-sale-dialog .yk-sale-dismiss { position: absolute; inset-block-start: 7px; inset-inline-end: 10px; margin: 0; }
.yk-sale-dismiss button {
    display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0 6px;
    color: #fff9e7; background: transparent; border: 0; border-radius: 4px;
    font: inherit; font-size: 13px; cursor: pointer;
}
.yk-sale-dismiss button span { font-size: 22px; line-height: 1; }
.yk-sale-period { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-inline-end: 60px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.yk-sale-period b { border: 1px solid #eac986; border-radius: 3px; padding: 1px 6px; color: #ffe5a6; font-size: 12px; }
.yk-sale-head h2#yk-sale-title { margin: 12px 0 1px; color: inherit; font-size: clamp(24px, 4vw, 32px); line-height: 1.22; font-weight: 800; }
.yk-sale-offer { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: baseline; color: inherit; font-size: 15px; font-weight: 700; line-height: 1.1; }
.yk-sale-offer strong { color: #fff8df; font: 800 clamp(40px, 8vw, 59px)/1.1 var(--font-family-poppins, sans-serif); letter-spacing: -.045em; }
.yk-sale-offer strong span { font-size: .67em; }
.yk-sale-body { padding: 17px 28px 21px; }
.yk-sale-how { font-size: 15px; line-height: 1.6; }
.yk-sale-body .yk-sale-example {
    display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 16px;
    margin-block: 12px 2px; padding-block: 10px; border-block: 1px solid #ddcdad; color: inherit; text-decoration: none;
}
.yk-sale-example .yk-sale-photo { width: 100%; height: auto; mix-blend-mode: multiply; }
.yk-sale-example-copy { display: block; font-size: 13px; line-height: 1.5; }
.yk-sale-example-label, .yk-sale-model-link { display: block; }
.yk-sale-example-label, .yk-sale-code { font-size: 11px; color: #69544c; }
.yk-sale-model { font-size: 14px; }
.yk-sale-prices { display: inline-flex; align-items: baseline; gap: 4px; margin-inline-end: 5px; }
.yk-sale-prices strong { font-size: 20px; color: var(--sale-red); }
.yk-sale-saving { display: inline-block; white-space: nowrap; color: var(--sale-red); font-size: 12px; font-weight: 700; }
.yk-sale-model-link, .yk-sale-body .yk-sale-details { color: #50332c; text-decoration: underline; text-underline-offset: 3px; }
.yk-sale-model-link { width: fit-content; font-size: 12px; margin-top: 2px; }
.yk-sale-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 13px; }
.yk-sale-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.yk-sale-actions .yk-sale-shop { gap: 20px; background: var(--sale-red); color: white; padding: 6px 18px; border-radius: 5px; text-decoration: none; }
.yk-sale-shop:hover { filter: brightness(.9); }
.yk-sale-dialog :focus-visible, a.yk-sale-trigger:focus-visible { outline: 3px solid #1071a2; outline-offset: 2px; }
.yk-sale-head :focus-visible { outline-color: #fff1ab; }
a.yk-sale-trigger {
    position: fixed; z-index: 950;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; gap: 6px; box-sizing: border-box;
    min-height: 44px; padding: 7px 14px; border: 1px solid #d9b779; border-radius: 16px 16px 3px 16px;
    color: #fff9e8; background: #8e1c29; box-shadow: 0 3px 12px rgb(23 15 15 / 23%);
    text-decoration: none; line-height: 1.15;
}
.yk-sale-trigger::after {
    content: ""; position: absolute; right: 6px; bottom: -5px; width: 8px; height: 8px;
    background: #8e1c29; border-right: 1px solid #d9b779; border-bottom: 1px solid #d9b779; transform: skewY(35deg);
}
.yk-sale-trigger span { font-size: 12px; font-weight: 700; }
.yk-sale-trigger strong { font-size: 15px; font-weight: 800; }
body:has(.scroll-to-top.visible) .yk-sale-trigger { bottom: calc(91px + env(safe-area-inset-bottom, 0px)); }
.mobile-menu-open .yk-sale-trigger, .yk-sale-open .yk-sale-trigger { visibility: hidden; }
@media (max-width: 768px) {
    body:has(.scroll-to-top.visible) .yk-sale-trigger { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    body:has(input:focus, textarea:focus, select:focus) .yk-sale-trigger { visibility: hidden; }
}
@media (max-width: 480px) {
    a.yk-sale-trigger { flex-direction: column; gap: 2px; padding: 6px 11px; align-items: center; }
    .yk-sale-trigger span { font-size: 10px; }
    .yk-sale-trigger strong { font-size: 13px; }
    .yk-sale-head { padding: 18px 18px 14px; }
    .yk-sale-body { padding: 14px 18px 16px; }
    .yk-sale-body .yk-sale-example { grid-template-columns: 60px minmax(0,1fr); gap: 10px; }
    .yk-sale-how { font-size: 14px; }
    .yk-sale-offer { gap: 4px 6px; font-size: 13px; }
    .yk-sale-prices strong { font-size: 18px; }
}
@media (max-width: 359px) {
    .home .site-branding .logo-image { max-width: 42vw; height: auto; }
}
