html {
    scroll-behavior: smooth;
}

body.ys-redesign {
    margin: 0;
    background: #090b09;
    font-family: "Manrope", Arial, sans-serif;
}

body.ys-redesign main {
    min-height: 50vh;
}

.ysp-header,
.ysh-hero,
.ysx-specials,
.ysf-footer {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 300;
}

.ysx-location-message {
    margin: -27px 0 30px;
    padding: 13px 16px;
    border: 1px solid rgba(237, 118, 38, 0.24);
    border-radius: 14px;
    color: #6e532e;
    background: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.ysx-location-message[hidden],
.ysx-location-message:empty,
.ysx-ad-slot:empty {
    display: none;
}

.ysx-ad-slot:not(:empty) {
    margin: 0 0 30px;
}

.ysx-ad-slot img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Preserve the paid, city-targeted header creative inside the redesign. */
.ysp-main__inner {
    grid-template-columns: 172px minmax(0, 1fr) clamp(190px, 14vw, 232px) auto;
    gap: 24px;
}

.ysp-header-ad {
    grid-area: auto;
    width: 100%;
    max-width: 232px;
    min-height: 0;
    aspect-ratio: 600 / 264;
    margin: 0;
    place-self: center;
    border: 1px solid rgba(243, 200, 76, 0.28);
    border-radius: 12px;
    background: #0b0d0b;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 28px rgba(0, 0, 0, 0.24);
}

.ysp-header-ad[data-ad-state="loading"]::before {
    border-radius: inherit;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0.025),
        rgba(243, 200, 76, 0.15),
        rgba(255, 255, 255, 0.025)
    );
    animation: yspHeaderAdLoading 1.5s ease-in-out infinite;
}

.ysp-header-ad[data-ad-state="empty"],
.ysp-header-ad[data-ad-state="error"] {
    display: none;
}

.ysp-header-ad .mobile-navbar-ad-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.ysp-header-ad .mobile-navbar-ad-img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    border-radius: inherit;
    background: #0b0d0b;
    box-shadow: none;
}

.ysp-header-ad .mobile-navbar-ad-link:hover .mobile-navbar-ad-img {
    filter: brightness(1.035);
}

.ysp-header-ad .mobile-navbar-ad-link:focus-visible {
    outline: 3px solid #f3c84c;
    outline-offset: 3px;
}

.ysx-ad-preview-notice {
    margin: -12px 0 28px;
    padding: 12px 15px;
    border: 1px dashed rgba(237, 118, 38, 0.55);
    border-radius: 14px;
    color: #55320e;
    background: rgba(255, 247, 228, 0.9);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
}

.ysx-ad-preview-notice[hidden] {
    display: none;
}

#featureAdSlot .feature-banner-ad-link {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(237, 118, 38, 0.22);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(50, 43, 31, 0.12);
}

#featureAdSlot .feature-banner-ad-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

@keyframes yspHeaderAdLoading {
    0%, 100% { opacity: 0.38; }
    50% { opacity: 0.9; }
}

.ysx-card__image--fallback {
    display: grid;
    place-items: center;
    padding: 24px;
    color: #687066;
    background: #efeadf;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.ysp-header a:focus-visible,
.ysp-header button:focus-visible,
.ysh-hero a:focus-visible,
.ysh-hero button:focus-visible,
.ysx-specials a:focus-visible,
.ysx-specials button:focus-visible,
.ysx-specials select:focus-visible,
.ysf-footer a:focus-visible,
.ysf-footer button:focus-visible {
    outline: 3px solid #f3c84c;
    outline-offset: 3px;
}

#favouritesPanel {
    z-index: 100002;
}

.offcanvas-backdrop {
    z-index: 100001;
}

/* Compact favourites list: designed to stay useful when a customer saves many specials. */
#favouritesPanel {
    width: min(100vw, 410px);
    background:
        radial-gradient(circle at 86% 4%, rgba(243, 200, 76, .16), transparent 9rem),
        linear-gradient(180deg, #121811, #0b0d0b);
    color: #fffdf7;
}

#favouritesPanel .offcanvas-header {
    padding: 20px 18px 15px;
    border-bottom: 1px solid rgba(243, 200, 76, .2);
}

#favouritesPanel .offcanvas-title {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

#favouritesPanel .offcanvas-body {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    overflow-y: auto;
}

#favouritesBody .favourite-card {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(243, 200, 76, .24);
    border-radius: 14px;
    background: #f8f4e9;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

#favouritesBody .favourite-card__open {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    width: 100%;
    min-height: 102px;
    padding: 0;
    overflow: hidden;
    color: #16231a;
    text-align: left;
    background: transparent;
    border: 0;
}

#favouritesBody .favourite-card__open:hover {
    background: #fffdf7;
}

#favouritesBody .favourite-card__open:focus-visible {
    outline: 3px solid #f3c84c;
    outline-offset: -3px;
}

#favouritesBody .favourite-card__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #e3ebdf;
}

#favouritesBody .favourite-card__image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
    object-position: center;
}

#favouritesBody .favourite-card__image-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 10px;
    color: #176934;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: pre-line;
}

#favouritesBody .favourite-card__logo {
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 30px;
    height: 30px;
    padding: 3px;
    border: 1px solid rgba(20, 34, 24, .22);
    border-radius: 9px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
}

#favouritesBody .favourite-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 12px 42px 11px 12px;
}

#favouritesBody .favourite-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #16231a;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#favouritesBody .favourite-card__description {
    display: -webkit-box;
    margin: 5px 0 8px;
    overflow: hidden;
    color: #687066;
    font-size: .73rem;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#favouritesBody .favourite-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: #176934;
    font-size: .63rem;
    font-weight: 800;
    line-height: 1.2;
}

#favouritesBody .favourite-card__meta span + span {
    color: #727a72;
}

#favouritesBody .remove-local-favourite {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid rgba(231, 34, 50, .2);
    border-radius: 8px;
    background: #fff;
    color: #df2535;
    box-shadow: none;
}

#favouritesBody .remove-local-favourite:hover {
    background: #fff0f1;
    color: #c7192a;
}

#favouritesBody .remove-local-favourite i {
    font-size: .85rem;
}

@media (max-width: 620px) {
    .ysx-location-message {
        margin-top: -18px;
    }
}

@media (max-width: 1180px) {
    .ysp-main__inner {
        grid-template-columns: 140px minmax(0, 1fr) minmax(160px, 198px) auto;
        gap: 14px;
    }
}

@media (max-width: 920px) {
    .ysp-main__inner,
    .ysp-header.is-scrolled .ysp-main__inner {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo actions"
            "local-ad local-ad";
        column-gap: 14px;
        row-gap: 10px;
        padding-top: 9px;
        padding-bottom: 12px;
    }

    .ysp-logo {
        grid-area: logo;
    }

    .ysp-header-ad {
        grid-area: local-ad;
        width: min(100%, 244px);
        max-width: 244px;
        justify-self: center;
    }

    .ysp-actions {
        grid-area: actions;
    }
}

@media (max-width: 600px) {
    .ysp-header-ad {
        width: min(100%, 220px);
        max-width: 220px;
    }
}

@media (max-width: 360px) {
    .ysp-header-ad {
        width: min(100%, 190px);
        max-width: 190px;
    }
}
