/* Toneroffice footer ------------------------------------------------------- */

#snackys-tpl #footer.to-footer {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding: 0;
    border-top: 0;
    background: var(--color-white);
    color: var(--color-neutral);
    font-family: var(--font-family-base);
}

#snackys-tpl .to-footer a {
    color: inherit;
}

#snackys-tpl .to-footer__inner {
    width: 100%;
    max-width: none;
    margin: 0;
}

#snackys-tpl .to-footer__container {
    width: 100%;
    max-width: var(--to-header-container, 1504px);
    margin: 0 auto;
    padding: 0 var(--spacing-16);
}

/* Support ----------------------------------------------------------------- */

#snackys-tpl .to-footer__support {
    overflow: visible;
    background: var(--color-tertiary-50);
    color: var(--color-neutral);
    font-family: var(--font-family-base);
}

#snackys-tpl .to-footer__support > .to-footer__container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 219px;
    margin-top: var(--spacing-12);
}

#snackys-tpl .to-footer__support-primary,
#snackys-tpl .to-footer__support-secondary {
    min-width: 0;
    padding: var(--spacing-10) 0 var(--spacing-8);
}

#snackys-tpl .to-footer__support-primary {
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-right: var(--spacing-16);
    padding-bottom: 0;
    border-right: 2px solid var(--color-tertiary-75);
}

#snackys-tpl .to-footer__support-secondary {
    padding-left: var(--spacing-16);
}

#snackys-tpl .to-footer__support .snackys-content {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#snackys-tpl .to-footer__support .to-footer__heading {
    min-height: 0;
    margin: 0 0 var(--spacing-6);
    padding: 0;
    border: 0;
    color: var(--color-neutral) !important;
    font-family: var(--font-family-base);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-transform: uppercase;
}

#snackys-tpl .to-footer__support-phone-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    flex: 1 1 auto;
    gap: var(--spacing-8);
    min-height: 100%;
}

#snackys-tpl .to-footer__support-photo {
    display: block;
    align-self: end;
    width: 230px;
    max-width: none;
    height: auto;
    margin: -5em -1em 0;
    object-fit: contain;
    object-position: bottom center;
    pointer-events: none;
}

#snackys-tpl .to-footer__support-photo-avatar {
    display: none;
}

#snackys-tpl .to-footer__support-phone-body {
    display: contents;
}

#snackys-tpl .to-footer__support-phone-details {
    display: contents;
}

#snackys-tpl .to-footer__support-phone {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    color: var(--color-neutral) !important;
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__support-flag {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 19px;
    border-radius: 3px;
    background: linear-gradient(to bottom, var(--color-neutral) 0 33.333%, #d20b1d 33.333% 66.666%, var(--color-warning) 66.666% 100%);
    box-shadow: 0 0 0 1px rgba(36, 36, 36, 0.12);
}

#snackys-tpl .to-footer__support-phone-content {
    min-width: 0;
    padding-bottom: 0;
}

#snackys-tpl .to-footer__support-phone-content .to-footer__heading {
    margin-bottom: var(--spacing-4);
}

#snackys-tpl .to-footer__support-phone-content p {
    max-width: 455px;
    margin: var(--spacing-4) 0 0;
    color: var(--color-neutral) !important;
    font-size: var(--font-size-normal);
    font-weight: normal;
    line-height: 1.5;
}

#snackys-tpl .to-footer__support-copy {
    max-width: 940px;
    margin: 0;
    color: var(--color-neutral) !important;
    font-size: var(--font-size-normal);
    font-weight: normal;
    line-height: 1.5;
}

#snackys-tpl .to-footer__support-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-10);
    margin-top: var(--spacing-6);
}

#snackys-tpl .to-footer__support-action {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    color: var(--color-neutral) !important;
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__support-action + .to-footer__support-action {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

#snackys-tpl .to-footer__support-action-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__support-action-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
}

#snackys-tpl .to-footer__support a:hover,
#snackys-tpl .to-footer__support a:focus {
    color: var(--color-primary-100) !important;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__support-secondary > .snackys-content {
    margin-top: var(--spacing-4);
}

/* Main-menu repetition ---------------------------------------------------- */

#snackys-tpl .to-footer__categories {
    min-height: 570px;
    padding: var(--spacing-16) 0 var(--spacing-12);
    background: var(--color-primary-100);
    color: var(--color-white);
    font-family: var(--font-family-base);
}

#snackys-tpl .to-footer__categories-head {
    display: grid;
    grid-template-columns: auto minmax(260px, 47%);
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
    color: var(--color-white);
}

#snackys-tpl .to-footer__brand {
    width: 170px;
    height: 34px;
}

#snackys-tpl .to-footer__brand img {
    display: block;
    width: 170px;
    height: 34px;
    object-fit: contain;
}

#snackys-tpl .to-footer__color-rule {
    min-width: 0;
    max-width: 661px;
    width: 100%;
}

#snackys-tpl .to-footer__color-rule img {
    display: block;
    width: 100%;
    height: auto;
}

#snackys-tpl .to-footer__category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--spacing-12);
    row-gap: var(--spacing-12);
}

#snackys-tpl .to-footer__category {
    min-width: 0;
}

/*
 * OPC text/HTML fields inherit the category styling from this wrapper.
 * A heading followed by a list is enough; the existing explicit footer
 * classes remain available for hand-written HTML.
 */
#snackys-tpl .to-footer__category-content > div {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
}

#snackys-tpl .to-footer__category-content h2,
#snackys-tpl .to-footer__category-content h3,
#snackys-tpl .to-footer__category-content h4,
#snackys-tpl .to-footer__category-content h5,
#snackys-tpl .to-footer__category-content .to-footer__heading {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    overflow: hidden;
    margin: 0 0 var(--spacing-3);
    padding: 0 0 var(--spacing-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-white) !important;
    font-family: var(--font-family-base);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

#snackys-tpl .to-footer__category-content h2::before,
#snackys-tpl .to-footer__category-content h3::before,
#snackys-tpl .to-footer__category-content h4::before,
#snackys-tpl .to-footer__category-content h5::before,
#snackys-tpl .to-footer__category-content .to-footer__heading::before {
    flex: 0 0 15px;
    width: 15px;
    content: "\f35d";
    font-family: "Font Awesome 5 Free";
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

#snackys-tpl .to-footer__category-content h2 a,
#snackys-tpl .to-footer__category-content h3 a,
#snackys-tpl .to-footer__category-content h4 a,
#snackys-tpl .to-footer__category-content h5 a,
#snackys-tpl .to-footer__category-content .to-footer__heading a {
    overflow: hidden;
    color: inherit !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#snackys-tpl .to-footer__category-content ul {
    display: grid;
    gap: var(--spacing-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

#snackys-tpl .to-footer__category-content li,
#snackys-tpl .to-footer__category-content p {
    margin: 0;
    padding: 0;
}

#snackys-tpl .to-footer__category-content li a,
#snackys-tpl .to-footer__category-content p a {
    display: block;
    overflow: hidden;
    color: var(--color-white) !important;
    font-size: 16px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__category-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    overflow: hidden;
    margin-bottom: var(--spacing-3);
    padding-bottom: var(--spacing-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-white) !important;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__external-icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--color-white);
}

#snackys-tpl .to-footer__category-link,
#snackys-tpl .to-footer__category-content a,
#snackys-tpl .to-footer__subcategory-list a {
    opacity: 1;
    transition: opacity 0.15s ease;
}

#snackys-tpl .to-footer__category-link:hover,
#snackys-tpl .to-footer__category-link:focus,
#snackys-tpl .to-footer__category-content a:hover,
#snackys-tpl .to-footer__category-content a:focus,
#snackys-tpl .to-footer__subcategory-list a:hover,
#snackys-tpl .to-footer__subcategory-list a:focus {
    color: var(--color-white) !important;
    opacity: 0.7;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__subcategory-list {
    display: grid;
    gap: var(--spacing-1);
}

#snackys-tpl .to-footer__subcategory-list a {
    display: block;
    overflow: hidden;
    color: var(--color-white) !important;
    font-size: 16px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
}

/* Link boxes, social profiles, shipping and payment ----------------------- */

#snackys-tpl .to-footer__main {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 0;
    background: var(--color-tertiary-50);
}

#snackys-tpl .to-footer__box-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: var(--spacing-12);
    height: auto;
    min-height: 0;
    padding: var(--spacing-16) 0 var(--spacing-6);
    overflow: visible;
}

#snackys-tpl .to-footer__box,
#snackys-tpl .to-footer__box .panel,
#snackys-tpl .to-footer__box .panel-body {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#snackys-tpl .to-footer__box .panel-heading,
#snackys-tpl .to-footer__social > .panel-heading {
    min-height: 0;
    margin: 0 0 var(--spacing-4);
    padding: 0 0 var(--spacing-4);
    border: 0;
    border-bottom: 1px solid var(--color-tertiary-75);
    color: var(--color-neutral);
    font-family: var(--font-family-base);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-transform: uppercase;
}

#snackys-tpl .to-footer__box .panel-heading .caret {
    display: none;
}

#snackys-tpl .to-footer__box .panel-body,
#snackys-tpl .to-footer__box .panel-body p,
#snackys-tpl .to-footer__box .panel-body a {
    color: var(--color-neutral);
    font-size: 16px;
    line-height: 1.55;
}

#snackys-tpl .to-footer__box .panel-body a {
    line-height: 1;
}

#snackys-tpl .to-footer__box .nav-it {
    margin: 0;
}

#snackys-tpl .to-footer__box .panel-body,
#snackys-tpl .to-footer__box .panel-body ul:not(.social-icons) {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    overflow: visible;
}

#snackys-tpl .to-footer__box .btn {
    display: none;
}

#snackys-tpl .to-footer__newsletter .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    font-size: 16px;
}

#snackys-tpl .to-footer__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    margin: 0;
}

#snackys-tpl .to-footer__newsletter-form fieldset {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

#snackys-tpl .to-footer__newsletter-form .form-control {
    width: 100%;
    min-height: 40px;
    margin: 0;
    border: 2px solid var(--color-tertiary-75);
}

#snackys-tpl .to-footer__box .panel-body .privacy,
#snackys-tpl .to-footer__box .panel-body .privacy a,
#snackys-tpl .to-footer__newsletter-form .privacy,
#snackys-tpl .to-footer__newsletter-form .privacy a,
#snackys-tpl .to-footer__newsletter-form .info {
    margin: 0;
    font-size: 13.3px;
    line-height: 1.4;
}

#snackys-tpl .to-footer__box .panel-body .privacy a.tdu,
#snackys-tpl .to-footer__newsletter-form .privacy a.tdu {
    text-decoration: underline;
}

#snackys-tpl .to-footer__box .nav-it > a {
    display: block;
    padding: 0;
}

#snackys-tpl .to-footer__box .nav-it > a:hover,
#snackys-tpl .to-footer__box .nav-it > a:focus {
    color: var(--color-primary-100);
}

#snackys-tpl .to-footer__box .newsletter-footer form {
    margin-top: var(--spacing-2);
}

#snackys-tpl .to-footer__newsletter .info.small,
#snackys-tpl .to-footer__box .newsletter-footer .info {
    margin-top: 0;
}

#snackys-tpl .to-footer__collapse-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    min-width: 0;
}

#snackys-tpl .to-footer__category .to-footer__collapse-header {
    margin-bottom: var(--spacing-3);
    padding-bottom: var(--spacing-3);
    border-bottom: 1px solid var(--color-primary-75);
}

#snackys-tpl .to-footer__category .to-footer__category-link {
    flex: 1 1 auto;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

#snackys-tpl .to-footer__collapse-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    appearance: none;
}

#snackys-tpl .to-footer__category .to-footer__collapse-chevron {
    fill: none;
    stroke: var(--color-white);
}

#snackys-tpl .to-footer__box .panel-heading.to-footer__collapse-header,
#snackys-tpl .to-footer__social > .panel-heading.to-footer__collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
    cursor: default;
}

#snackys-tpl [data-to-footer-collapse].is-open > .to-footer__collapse-header .to-footer__collapse-chevron,
#snackys-tpl [data-to-footer-collapse].is-open > .to-footer__collapse-toggle .to-footer__collapse-chevron {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    #snackys-tpl .to-footer__collapse-toggle {
        display: inline-flex;
    }

    #snackys-tpl .to-footer__box .panel-heading.to-footer__collapse-header,
    #snackys-tpl .to-footer__social > .panel-heading.to-footer__collapse-header {
        cursor: pointer;
        margin-bottom: 0;
        padding-bottom: var(--spacing-2);
    }

    #snackys-tpl .to-footer__category:not(.is-open) .to-footer__subcategory-list,
    #snackys-tpl .to-footer__box:not(.is-open) .panel-body {
        display: none;
    }

    #snackys-tpl .to-footer__category.is-open .to-footer__subcategory-list,
    #snackys-tpl .to-footer__box.is-open .panel-body {
        display: grid;
    }

    #snackys-tpl .to-footer__box.is-open .panel-body {
        display: flex;
        padding: var(--spacing-4) 0;
        gap: var(--spacing-2);
    }

    #snackys-tpl .to-footer__category .to-footer__collapse-header {
        margin-bottom: 0;
        padding-bottom: var(--spacing-2);
    }

    #snackys-tpl .to-footer__category.is-open .to-footer__collapse-header {
        margin-bottom: var(--spacing-2);
    }

    #snackys-tpl .to-footer__box:not(.is-open) .panel-heading,
    #snackys-tpl .to-footer__box:not(.is-open) .to-footer__collapse-header {
        margin-bottom: 0;
    }

    #snackys-tpl .to-footer__category-grid,
    #snackys-tpl .to-footer__box-grid {
        row-gap: 0;
        column-gap: var(--spacing-3);
    }

    #snackys-tpl .to-footer__box-grid {
        padding: var(--spacing-4) 0;
    }

    #snackys-tpl .to-footer__category,
    #snackys-tpl .to-footer__box {
        padding: var(--spacing-1) 0;
    }

    #snackys-tpl .to-footer__subcategory-list {
        gap: 2px;
        padding-bottom: var(--spacing-2);
    }
}


#snackys-tpl .to-footer__social .social-icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

#snackys-tpl .to-footer__commerce .to-footer__social,
#snackys-tpl .to-footer__commerce .to-footer__reviews {
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
}

#snackys-tpl .to-footer__reviews-wrap {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
}

#snackys-tpl .to-footer__reviews-link {
    display: contents;
}

#snackys-tpl .to-footer__reviews-count {
    grid-column: 2;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(36, 36, 36, 0.72);
}

#snackys-tpl .to-footer__reviews-count-link,
#snackys-tpl .to-footer__reviews-count-link:hover,
#snackys-tpl .to-footer__reviews-count-link:focus {
    color: inherit;
    text-decoration: none !important;
}

#snackys-tpl .to-footer__reviews:has(.to-home-hero__rating-tip:hover),
#snackys-tpl .to-footer__reviews:has(.to-home-hero__rating-tip:focus),
#snackys-tpl .to-footer__reviews:has(.to-home-hero__rating-tip:focus-visible),
#snackys-tpl .to-footer__commerce:has(.to-home-hero__rating-tip:hover),
#snackys-tpl .to-footer__commerce:has(.to-home-hero__rating-tip:focus),
#snackys-tpl .to-footer__commerce:has(.to-home-hero__rating-tip:focus-visible) {
    z-index: 40;
    overflow: visible;
}

#snackys-tpl .to-footer__reviews-tip.to-home-hero__rating-tip,
#snackys-tpl .to-footer__reviews-count .to-footer__reviews-tip {
    position: relative;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 13.3px;
    height: 13.3px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-neutral) !important;
    cursor: help;
}

#snackys-tpl .to-footer__reviews-tip.to-home-hero__rating-tip svg,
#snackys-tpl .to-footer__reviews-count .to-footer__reviews-tip svg {
    display: block;
    width: 13.3px;
    height: 13.3px;
    stroke: var(--color-neutral);
    color: var(--color-neutral);
}

/* Tip bubble must live in footer.css — home.css is startpage-only. */
#snackys-tpl .to-footer__reviews-tip .to-home-hero__rating-tip-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 10000;
    display: none;
    width: max-content;
    max-width: 280px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--color-neutral, #242424);
    color: var(--color-white);
    font-size: 13px;
    font-weight: var(--font-weight-regular, 400);
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
    transform: translateX(-50%);
    pointer-events: none;
}

#snackys-tpl .to-footer__reviews-tip .to-home-hero__rating-tip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-top-color: var(--color-neutral, #242424);
    transform: translateX(-50%);
}

#snackys-tpl .to-footer__reviews-tip:hover .to-home-hero__rating-tip-text,
#snackys-tpl .to-footer__reviews-tip:focus .to-home-hero__rating-tip-text,
#snackys-tpl .to-footer__reviews-tip:focus-visible .to-home-hero__rating-tip-text {
    display: block;
}

@media (max-width: 767px) {
    #snackys-tpl .to-footer__reviews-tip .to-home-hero__rating-tip-text {
        left: auto;
        right: 0;
        max-width: min(260px, 70vw);
        font-size: 12px;
        transform: none;
    }

    #snackys-tpl .to-footer__reviews-tip .to-home-hero__rating-tip-text::after {
        left: auto;
        right: 4px;
        transform: none;
    }
}

#snackys-tpl .to-footer__commerce .to-footer__social .to-footer__heading,
#snackys-tpl .to-footer__commerce .to-footer__reviews .to-footer__heading {
    margin: 0 0 var(--spacing-10);
}

#snackys-tpl .to-footer__reviews-link,
#snackys-tpl .to-footer__reviews-link:hover,
#snackys-tpl .to-footer__reviews-link:focus,
#snackys-tpl .to-footer__reviews-link:focus-visible,
#snackys-tpl .to-footer__reviews-link:active {
    display: contents;
    color: var(--color-neutral);
    text-decoration: none !important;
    box-shadow: none !important;
}

#snackys-tpl .to-footer__reviews-link *,
#snackys-tpl .to-footer__reviews-link:hover *,
#snackys-tpl .to-footer__reviews-link:focus * {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

#snackys-tpl .to-footer__reviews-brand {
    display: inline-flex;
    flex: 0 0 auto;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 40px;
    height: 40px;
}

#snackys-tpl .to-footer__reviews-brand svg {
    display: block;
    width: 40px;
    height: 40px;
}

#snackys-tpl .to-footer__reviews-body {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
    min-width: 0;
    font-family: var(--font-family-base);
    font-size: 15px;
    line-height: 1.2;
}

#snackys-tpl .to-footer__reviews-score-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#snackys-tpl .to-footer__reviews-stars {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    font-size: var(--font-size-h6);
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
}

#snackys-tpl .to-footer__reviews-stars-bg,
#snackys-tpl .to-footer__reviews-stars-fg {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
}

#snackys-tpl .to-footer__reviews-stars-bg {
    color: rgba(36, 36, 36, 0.22);
}

#snackys-tpl .to-footer__reviews-stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: calc((var(--rating, 0) / 5) * 100%);
    overflow: hidden;
    color: #f7802f;
    white-space: nowrap;
}

#snackys-tpl .to-footer__reviews-score {
    color: #f7802f;
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-bold, 700);
    line-height: 1;
}

#snackys-tpl .to-footer__reviews-fallback {
    color: rgba(36, 36, 36, 0.72);
}

#snackys-tpl .to-footer__social .social-icons li {
    margin: 0;
}

#snackys-tpl .to-footer__social .btn-social {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    background: var(--color-neutral);
}

#snackys-tpl .to-footer__social .btn-social svg {
    width: 19px;
    height: 19px;
    fill: var(--color-white);
}

#snackys-tpl .to-footer__social .btn-social svg use {
    fill: var(--color-white);
}

#snackys-tpl #footer .to-footer__social a.btn-social:not(.btn):hover,
#snackys-tpl #footer .to-footer__social a.btn-social:not(.btn):focus,
#snackys-tpl .to-footer__social .btn-social:hover,
#snackys-tpl .to-footer__social .btn-social:focus {
    color: inherit;
    box-shadow: none;
    background: var(--color-neutral);
    border-color: transparent;
}

#snackys-tpl .to-footer__social .btn-social:hover svg,
#snackys-tpl .to-footer__social .btn-social:focus svg,
#snackys-tpl .to-footer__social .btn-social:hover svg use,
#snackys-tpl .to-footer__social .btn-social:focus svg use {
    fill: var(--color-primary-100);
}

#snackys-tpl .to-footer__commerce {
    position: relative;
    z-index: 2;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-8);
    height: auto;
    min-height: 236px;
    margin: 0;
    padding: var(--spacing-16) 0 0;
    overflow: visible;
}

#snackys-tpl .to-footer__shipping,
#snackys-tpl .to-footer__payments {
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
}

#snackys-tpl .to-footer__commerce .to-footer__heading {
    font-family: var(--font-family-base);
    margin: 0 0 var(--spacing-10);
    color: var(--color-neutral);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-transform: uppercase;
}

#snackys-tpl .to-footer__commerce .snackys-content {
    margin: 0;
}

#snackys-tpl .to-footer__shipping-content {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center;
    min-height: 48px;
}

#snackys-tpl .to-footer__shipping-list {
    display: flex !important;
    flex-flow: row nowrap !important;
    flex: 0 1 auto;
    align-items: center;
    gap: var(--spacing-3);
    margin: 0;
}

#snackys-tpl .to-footer__shipping-list li {
    display: flex;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 46px;
    overflow: hidden;
    padding: 0;
    border: 2px solid var(--color-tertiary-75);
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    color: var(--color-neutral);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    text-align: center;
}

#snackys-tpl .to-footer__shipping-list img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

#snackys-tpl .to-footer__payment-list {
    display: flex !important;
    flex-flow: row nowrap !important;
    flex: 0 1 auto;
    align-items: center;
    gap: var(--spacing-3);
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

#snackys-tpl .to-footer__payment-list li {
    display: flex;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 46px;
    overflow: hidden;
    padding: 0;
    border: 2px solid var(--color-tertiary-75);
    border-radius: var(--border-radius-sm);
    background: var(--color-white);
    color: var(--color-neutral);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    text-align: center;
}

#snackys-tpl .to-footer__payment-list img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

#snackys-tpl .to-footer__payment-list .to-footer__payment-card--text {
    padding: var(--spacing-1);
    color: var(--color-neutral);
    font-family: var(--font-family-base);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    text-transform: uppercase;
}

/* Legal footer ------------------------------------------------------------ */

#snackys-tpl .to-footer__legal {
    padding: 0;
    border-top: 1px solid rgba(36, 36, 36, 0.08);
    background: var(--color-tertiary-50);
}

#snackys-tpl .to-footer__legal-notices {
    height: auto;
    margin: 0;
    padding: var(--spacing-8) 0 0;
    color: rgba(36, 36, 36, 0.5);
    font-size: var(--font-size-xs);
    line-height: 1.35;
}

#snackys-tpl .to-footer__legal-notices p {
    display: block;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

#snackys-tpl .to-footer__legal-notices p + p {
    margin-top: var(--spacing-2);
}

#snackys-tpl .to-footer__legal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
    margin: 0;
    padding: var(--spacing-4) 0 var(--spacing-8);
}

#snackys-tpl .to-footer__copyright {
    font-size: 16px;
    line-height: 1.3;
}

#snackys-tpl .to-footer__withdrawal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    border: 1px solid var(--color-neutral);
    border-radius: 8px;
    background: transparent;
    color: var(--color-neutral) !important;
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

#snackys-tpl .to-footer__withdrawal-link img {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

#snackys-tpl .to-footer__withdrawal-link:hover,
#snackys-tpl .to-footer__withdrawal-link:focus {
    background: var(--color-neutral);
    color: var(--color-white) !important;
}

#snackys-tpl .to-footer__withdrawal-link:hover img,
#snackys-tpl .to-footer__withdrawal-link:focus img {
    filter: brightness(0) invert(1);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1399px) {
    #snackys-tpl .to-footer__support-primary {
        padding-right: var(--spacing-8);
    }

    #snackys-tpl .to-footer__support-secondary {
        padding-left: var(--spacing-8);
    }

    #snackys-tpl .to-footer__support-phone-layout {
        grid-template-columns: 168px minmax(0, 1fr);
        gap: var(--spacing-6);
    }

    #snackys-tpl .to-footer__support-photo {
        width: 168px;
    }

    #snackys-tpl .to-footer__support-phone {
        gap: var(--spacing-3);
        font-size: 24px;
    }

    #snackys-tpl .to-footer__support-action {
        gap: var(--spacing-2);
        font-size: 21px;
    }

    #snackys-tpl .to-footer__support-action + .to-footer__support-action {
        margin-left: 0;
        padding-left: 0;
        border: 0;
    }
}

@media (max-width: 1199px) {
    #snackys-tpl .to-footer__container {
        padding-right: var(--spacing-8);
        padding-left: var(--spacing-8);
    }

    #snackys-tpl .to-footer__category-grid,
    #snackys-tpl .to-footer__box-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #snackys-tpl .to-footer__categories-head {
        grid-template-columns: auto 1fr;
    }

    #snackys-tpl .to-footer__color-rule {
        grid-column: 1 / -1;
    }

    #snackys-tpl .to-footer__main {
        min-height: 0;
    }

    #snackys-tpl .to-footer__box-grid {
        height: auto;
        min-height: 272px;
        overflow: visible;
    }

    #snackys-tpl .to-footer__commerce {
        height: auto;
        min-height: 236px;
        padding-bottom: var(--spacing-10);
    }

    #snackys-tpl .to-footer__payment-list {
        flex-flow: row wrap !important;
        max-width: 300px;
    }
}

@media (max-width: 991px) {
    #snackys-tpl .to-footer__support > .to-footer__container {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    #snackys-tpl .to-footer__support-primary {
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid var(--color-tertiary-75);
    }

    #snackys-tpl .to-footer__support-secondary {
        padding-left: 0;
    }

    #snackys-tpl .to-footer__category-grid,
    #snackys-tpl .to-footer__box-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #snackys-tpl .to-footer__main {
        min-height: 0;
    }

    #snackys-tpl .to-footer__commerce {
        flex-direction: column;
        gap: var(--spacing-12);
        padding-bottom: var(--spacing-12);
    }

    #snackys-tpl .to-footer__shipping,
    #snackys-tpl .to-footer__payments,
    #snackys-tpl .to-footer__commerce .to-footer__social,
    #snackys-tpl .to-footer__commerce .to-footer__reviews {
        flex: 0 0 auto;
        width: max-content;
        max-width: 100%;
    }

    #snackys-tpl .to-footer__categories {
        min-height: 0;
    }

    #snackys-tpl .to-footer__legal,
    #snackys-tpl .to-footer__legal-notices {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    #snackys-tpl #footer.to-footer {
        margin-top: 0;
    }

    #snackys-tpl .to-footer__support > .to-footer__container {
        margin-top: 0;
    }

    #snackys-tpl .to-footer__container {
        padding-right: var(--spacing-4);
        padding-left: var(--spacing-4);
    }

    #snackys-tpl .to-footer__support-primary,
    #snackys-tpl .to-footer__support-secondary {
        padding-top: var(--spacing-6);
        padding-bottom: var(--spacing-6);
    }

    #snackys-tpl .to-footer__support-phone-layout {
        display: block;
        width: 100%;
        min-height: 0;
    }

    #snackys-tpl .to-footer__support-photo {
        display: none;
    }

    #snackys-tpl .to-footer__support-phone-body {
        display: flex;
        align-items: center;
        gap: var(--spacing-6);
        margin-top: var(--spacing-6);
    }

    #snackys-tpl .to-footer__support-phone-details {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    #snackys-tpl .to-footer__support-photo-avatar {
        display: block;
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        margin: 0;
        border-radius: 50%;
        background-color: var(--color-white);
        background-image: var(--to-footer-support-photo);
        background-position: top center;
        background-repeat: no-repeat;
        background-size: 120%;
        box-shadow: 0 0 0 1px rgba(36, 36, 36, 0.08);
        pointer-events: none;
    }

    #snackys-tpl .to-footer__support-phone-content {
        min-width: 0;
    }

    #snackys-tpl .to-footer__support .to-footer__heading {
        margin-bottom: var(--spacing-3);
        font-size: 17px;
    }

    #snackys-tpl .to-footer__support-phone-details p {
        margin-top: var(--spacing-3);
    }

    #snackys-tpl .to-footer__support-phone {
        font-size: 22px;
    }

    #snackys-tpl .to-footer__support-phone-content p,
    #snackys-tpl .to-footer__support-copy {
        font-size: 15px;
    }

    #snackys-tpl .to-footer__support-actions {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: var(--spacing-3);
        row-gap: var(--spacing-3);
    }

    #snackys-tpl .to-footer__support-action {
        flex: 1 1 0;
        min-width: 0;
        font-size: 20px;
        white-space: normal;
    }

    #snackys-tpl .to-footer__categories {
        padding-top: var(--spacing-6);
        padding-bottom: var(--spacing-6);
    }

    #snackys-tpl .to-footer__categories-head {
        gap: var(--spacing-2) var(--spacing-3);
        margin-top: calc(-1 * var(--spacing-6));
        margin-right: calc(-1 * var(--spacing-4));
        margin-bottom: var(--spacing-4);
        margin-left: calc(-1 * var(--spacing-4));
    }

    #snackys-tpl .to-footer__brand {
        display: none;
    }

    #snackys-tpl .to-footer__brand img {
        display: none;
    }

    #snackys-tpl .to-footer__category-grid,
    #snackys-tpl .to-footer__box-grid {
        grid-template-columns: 1fr;
        column-gap: var(--spacing-3);
        row-gap: 0;
    }

    #snackys-tpl .to-footer__box-grid {
        min-height: 0;
        padding: var(--spacing-4) 0;
        row-gap: 0;
    }

    #snackys-tpl .to-footer__main {
        min-height: 0;
        padding: 0;
    }

    #snackys-tpl .to-footer__commerce {
        flex-direction: column;
        gap: var(--spacing-8);
        min-height: 0;
        margin: 0;
        padding: 0 0 var(--spacing-10);
    }

    #snackys-tpl .to-footer__shipping,
    #snackys-tpl .to-footer__payments,
    #snackys-tpl .to-footer__commerce .to-footer__social,
    #snackys-tpl .to-footer__commerce .to-footer__reviews {
        flex: 0 0 auto;
        width: max-content;
        max-width: 100%;
    }

    #snackys-tpl .to-footer__commerce .to-footer__heading {
        margin: 0 0 var(--spacing-4);
    }

    #snackys-tpl .to-footer__shipping-content,
    #snackys-tpl .to-footer__shipping-list,
    #snackys-tpl .to-footer__payment-list {
        flex-flow: row wrap !important;
    }

    #snackys-tpl .to-footer__shipping-list,
    #snackys-tpl .to-footer__payment-list {
        width: auto;
    }

    #snackys-tpl .to-footer__shipping-list li,
    #snackys-tpl .to-footer__payment-list li {
        flex-basis: 56px;
        width: 56px;
        height: 38px;
    }

    #snackys-tpl .to-footer__payment-list .to-footer__payment-card--text {
        flex-basis: auto;
        width: auto;
        min-width: 0;
        padding: 0 6px;
        font-size: 9px;
        letter-spacing: 0.02em;
    }

    #snackys-tpl .to-footer__legal-notices {
        height: auto;
        padding: var(--spacing-6) 0 0;
    }

    #snackys-tpl .to-footer__legal-bottom {
        height: auto;
        min-height: 0;
        padding: var(--spacing-3) 0 var(--spacing-8);
    }

    #snackys-tpl .to-footer__copyright {
        font-size: 13.3px;
        line-height: 1.3;
    }

    #snackys-tpl .to-footer__withdrawal-link {
        gap: var(--spacing-1);
        padding: var(--spacing-1) var(--spacing-2);
        font-size: 13.3px;
    }

    #snackys-tpl .to-footer__withdrawal-link img {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 479px) {
    #snackys-tpl .to-footer__support-phone-layout {
        display: block;
        width: 100%;
        min-height: 0;
    }

    #snackys-tpl .to-footer__support-photo {
        display: none;
    }

    #snackys-tpl .to-footer__support-photo-avatar {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }

    #snackys-tpl .to-footer__support-phone {
        align-items: center;
        flex-direction: row;
        gap: var(--spacing-3);
        font-size: 20px;
        white-space: nowrap;
    }

    #snackys-tpl .to-footer__support-phone-details p {
        margin-top: var(--spacing-3);
    }

    #snackys-tpl .to-footer__support-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--spacing-3);
    }

    #snackys-tpl .to-footer__support-action {
        flex: 1 1 calc(50% - var(--spacing-3));
        min-width: min(100%, 160px);
        max-width: 100%;
        font-size: 18px;
        white-space: normal;
    }

    #snackys-tpl .to-footer__support-action + .to-footer__support-action {
        margin: 0;
        padding: 0;
        border: 0;
    }

    #snackys-tpl .to-footer__category-grid,
    #snackys-tpl .to-footer__box-grid {
        grid-template-columns: 1fr;
    }

    #snackys-tpl .to-footer__categories-head {
        grid-template-columns: 1fr;
    }

    #snackys-tpl .to-footer__color-rule {
        grid-column: auto;
    }

    #snackys-tpl .to-footer__legal-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    #snackys-tpl .to-footer__withdrawal-link {
        width: 100%;
    }
}

/* Price mode toggle (fixed, container-aligned) ---------------------------- */

#snackys-tpl .to-price-mode {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9000;
    pointer-events: none;
    transform: translateY(calc(110% + var(--to-price-mode-sticky-h, 0px)));
    transition: transform .3s ease-in-out;
}

#snackys-tpl .to-price-mode.is-ready {
    transform: translateY(0);
}

#snackys-tpl .to-price-mode.is-covered {
    z-index: 9000;
    bottom: 0;
}

#snackys-tpl .to-price-mode.is-above-sticky {
    bottom: var(--to-price-mode-sticky-h, 0px);
    /* Behind sticky while rising; .is-raised lifts after animation end. */
    z-index: 9000;
}

#snackys-tpl .to-price-mode.is-above-sticky.is-raised {
    z-index: 9020;
}

#snackys-tpl .to-price-mode.is-exiting {
    transform: translateY(calc(110% + var(--to-price-mode-sticky-h, 0px)));
}

#snackys-tpl .to-price-mode.is-relocating {
    transition: none !important;
}

#snackys-tpl .to-price-mode__container {
    width: 100%;
    max-width: var(--to-header-container, 1504px);
    margin: 0 auto;
    padding: 0 var(--spacing-16, 64px);
    pointer-events: none;
}

#snackys-tpl .to-price-mode__box {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    padding: 8px 12px;
    overflow: visible;
    border: 2px solid var(--color-tertiary-50, #96a9d7);
    border-bottom: 0;
    border-radius: var(--border-radius-sm, 8px) var(--border-radius-sm, 8px) 0 0;
    background: var(--color-white, #fff);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

#snackys-tpl .to-price-mode.is-above-sticky .to-price-mode__box {
    box-shadow: 0 -15px 15px -5px rgba(0, 0, 0, 0.1);
}

#snackys-tpl .to-price-mode__box::before,
#snackys-tpl .to-price-mode__box::after {
    content: "";
    position: absolute;
    bottom: 0;
    z-index: 0;
    display: block;
    width: 15px;
    height: 15px;
    pointer-events: none;
    background-color: var(--color-tertiary-50, #96a9d7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M15 0L0 0L0 15A15 15 0 0 1 15 0Z' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 12px 12px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M15 0L0 0L0 15A15 15 0 0 1 15 0Z' fill='%23fff'/%3E%3Cpath d='M15 0A15 15 0 0 0 0 15' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 15px 15px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M15 0L0 0L0 15A15 15 0 0 1 15 0Z' fill='%23fff'/%3E%3Cpath d='M15 0A15 15 0 0 0 0 15' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: 15px 15px;
}

#snackys-tpl .to-price-mode__box::before {
    right: 100%;
    transform: rotate(180deg);
}

#snackys-tpl .to-price-mode__box::after {
    left: 100%;
    transform: rotate(180deg) scaleX(-1);
}

#snackys-tpl .to-price-mode__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-neutral, #242424);
    font-family: var(--font-family-base);
    font-size: 14px;
    font-weight: var(--font-weight-regular, 400);
    line-height: 1.2;
    cursor: pointer;
}

#snackys-tpl .to-price-mode__track {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: var(--color-primary-100, #002293);
}

#snackys-tpl .to-price-mode__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-white, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease;
}

#snackys-tpl .to-price-mode__toggle[aria-checked="true"] .to-price-mode__thumb {
    transform: translateX(16px);
}

#snackys-tpl .to-price-mode__label {
    min-width: 7em;
    font-weight: var(--font-weight-bold, 700);
    text-align: left;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    #snackys-tpl .to-price-mode__container {
        padding: 0 var(--spacing-4, 16px);
    }
}
