body.checkout-public-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.checkout-main {
    flex: 1 0 auto;
}

.checkout-footer {
    flex-shrink: 0;
}

.checkout-header__topbar {
    background: var(--checkout-primary-strong, #2d2618);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--checkout-on-primary, #ffffff);
    padding: 6px 20px;
}

.checkout-header__topbar-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 auto;
    max-width: 100%;
}

.checkout-header__topbar-item,
.checkout-header__topbar-item:hover,
.checkout-header__topbar-item:focus {
    align-items: center;
    color: var(--checkout-on-primary, #ffffff);
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    line-height: 1.25;
    opacity: 0.92;
    text-decoration: none;
}

.checkout-header__topbar-item:hover,
.checkout-header__topbar-item:focus {
    opacity: 1;
}

.checkout-header__topbar-icon {
    align-items: center;
    display: inline-flex;
    height: 14px;
    justify-content: center;
    width: 14px;
}

.checkout-header__topbar-icon svg {
    height: 14px;
    stroke-width: 1.8;
    width: 14px;
}

.checkout-header__inner {
    gap: 16px;
    grid-template-columns: auto minmax(220px, 1fr) minmax(220px, auto);
    min-height: 74px;
    padding: 10px 20px;
}

.checkout-brand img {
    height: 54px;
}

.checkout-brand__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
}

.checkout-brand__subtitle {
    font-size: 14px;
    line-height: 1.2;
}

.checkout-header__free-items {
    gap: 18px;
    min-height: 46px;
}

.checkout-header__free-item,
.checkout-header__free-item:hover,
.checkout-header__free-item:focus,
.checkout-header__free-content,
.checkout-header__free-text,
.checkout-header__link-menu-label,
.checkout-header__subbar-content {
    font-size: 13px;
    font-weight: 700;
}

.checkout-header--links-right .checkout-header__subbar-left {
    justify-content: flex-end;
    order: 2;
}

.checkout-header--links-right .checkout-header__subbar-right {
    justify-content: flex-start;
    order: 1;
}

.checkout-header__subbar {
    overflow: visible;
    padding: 0 20px;
}

.checkout-header__subbar,
.checkout-header__subbar-inner,
.checkout-header__subbar-content-wrap,
.checkout-header__subbar-left,
.checkout-header__subbar-right,
.checkout-header__subbar-node,
.checkout-links-menu {
    overflow: visible !important;
}

.checkout-header__subbar-inner {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 56px;
    overflow: visible;
    position: relative;
}

.checkout-header__subbar-content-wrap {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    overflow: visible;
    width: 100%;
}

.checkout-header__subbar-left,
.checkout-header__subbar-right {
    overflow: visible;
}

.checkout-header__subbar-right {
    gap: 24px;
}

.checkout-header__mobile-toggle {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: var(--checkout-header-subbar-text, var(--checkout-primary, var(--checkout-text)));
    cursor: pointer;
    display: none;
    gap: 8px;
    line-height: 1;
    min-height: 38px;
    padding: 7px 10px;
}

.checkout-header__mobile-toggle-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.checkout-header__mobile-toggle-icon {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    height: 0;
    transition: none;
    width: 0;
}

.checkout-header.is-mobile-open .checkout-header__mobile-toggle-icon {
    transform: rotate(180deg);
}

.checkout-links-menu {
    overflow: visible;
}

.checkout-links-menu__trigger {
    border-bottom-width: 4px;
    min-height: 56px;
    padding: 12px 14px 8px;
}

.checkout-links-menu__trigger--link,
.checkout-links-menu__trigger--link:hover,
.checkout-links-menu__trigger--link:focus {
    color: inherit;
    text-decoration: none;
}

.checkout-links-menu__trigger-text {
    font-size: 15px;
    letter-spacing: 0.01em;
}

.checkout-links-menu__panel,
.checkout-header__subbar-children {
    max-width: none;
    min-width: max-content;
    overflow: visible;
    white-space: nowrap;
    width: max-content;
}

.checkout-links-menu__panel--level-1 {
    left: 0;
    right: auto;
}

.checkout-header--links-right .checkout-links-menu__panel--level-1 {
    left: auto;
    right: 0;
}

.checkout-links-menu__node > .checkout-links-menu__panel {
    left: calc(100% - 1px);
    min-width: max-content;
    top: -1px;
}

.checkout-header--links-right .checkout-links-menu__node > .checkout-links-menu__panel {
    left: auto;
    right: calc(100% - 1px);
}

.checkout-header--links-right .checkout-links-menu__node-toggle::after {
    content: "<";
}

.checkout-links-menu__link,
.checkout-links-menu__node-toggle,
.checkout-header__subbar-item,
.checkout-header__subbar-children .checkout-header__subbar-item {
    white-space: nowrap;
}

.checkout-links-menu__link,
.checkout-links-menu__node-toggle {
    font-size: 14px;
    padding: 16px 20px;
}

.checkout-header__subbar-item {
    position: relative;
}

.checkout-header__subbar-item,
.checkout-header__subbar-item:hover,
.checkout-header__subbar-item:focus {
    gap: 8px;
    padding: 10px 0;
}

.checkout-header__subbar-area {
    font-size: 15px;
    font-weight: 700;
}

.checkout-header__subbar-content {
    font-size: 13px;
    font-weight: 600;
}

.checkout-header__subbar-item--active {
    font-weight: 700;
}

.checkout-header__subbar-right > .checkout-header__subbar-item--active::after,
.checkout-header__subbar-right > .checkout-header__subbar-node > .checkout-header__subbar-item--active::after {
    background: var(--checkout-header-subbar-hover);
    border-radius: 999px;
    bottom: -8px;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

.checkout-header__subbar-node {
    align-items: stretch;
    display: inline-flex;
    overflow: visible;
    position: relative;
}

.checkout-header__subbar-node--has-children > .checkout-header__subbar-item {
    padding-right: 2px;
}

.checkout-header__subbar-caret {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    height: 0;
    margin-left: 6px;
    width: 0;
}

.checkout-header__subbar-children {
    background: var(--checkout-surface);
    border: 1px solid var(--checkout-header-separator, var(--checkout-border));
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    display: none;
    left: 0;
    min-width: max-content;
    padding: 6px 0;
    position: absolute;
    top: calc(100% - 1px);
    z-index: 1300;
}

.checkout-header__subbar-node:hover > .checkout-header__subbar-children,
.checkout-header__subbar-node:focus-within > .checkout-header__subbar-children {
    display: block;
}

.checkout-header__subbar-children .checkout-header__subbar-node {
    display: block;
    width: 100%;
}

.checkout-header__subbar-children .checkout-header__subbar-item,
.checkout-header__subbar-children .checkout-header__subbar-item:hover,
.checkout-header__subbar-children .checkout-header__subbar-item:focus {
    border-radius: 0;
    justify-content: flex-start;
    padding: 8px 14px;
    width: 100%;
}

.checkout-header__subbar-children .checkout-header__subbar-item--active {
    background: var(--checkout-bg-soft, rgba(0, 0, 0, 0.05));
}

.checkout-header__subbar-children .checkout-header__subbar-item--active::after {
    display: none;
}

.checkout-header__subbar-children .checkout-header__subbar-node--has-children > .checkout-header__subbar-children {
    left: calc(100% - 1px);
    top: -1px;
}

.checkout-header--links-right .checkout-header__subbar-children {
    left: auto;
    right: 0;
}

.checkout-header--links-right .checkout-header__subbar-children .checkout-header__subbar-node--has-children > .checkout-header__subbar-children {
    left: auto;
    right: calc(100% - 1px);
}

.checkout-footer__custom-html {
    color: var(--checkout-on-primary);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.checkout-footer__custom-html img,
.checkout-footer__custom-html iframe,
.checkout-footer__custom-html video {
    height: auto;
    max-width: 100%;
}

.checkout-footer__custom-html table {
    max-width: 100%;
    width: 100%;
}

.checkout-footer__custom-html a {
    color: var(--checkout-accent);
    text-decoration: underline;
}

.checkout-footer__custom-html a:hover,
.checkout-footer__custom-html a:focus {
    color: var(--checkout-on-primary);
}

@media (max-width: 991px) {
    .checkout-header__topbar {
        padding: 6px 12px;
    }

    .checkout-header__topbar-inner {
        justify-content: center;
        gap: 10px;
    }

    .checkout-header__topbar-item,
    .checkout-header__topbar-item:hover,
    .checkout-header__topbar-item:focus {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 12px;
    }

    .checkout-header__inner {
        display: flex;
        flex-direction: column;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        width: 100%;
        padding: 10px 12px;
    }

    .checkout-header__block {
        width: 100%;
    }

    .checkout-header__block--logo,
    .checkout-header__block--identity,
    .checkout-header__block--free {
        justify-content: flex-start;
        width: 100%;
    }

    .checkout-brand img {
        height: auto;
        max-height: 44px;
        max-width: min(190px, 65vw);
        width: auto;
    }

    .checkout-brand__title {
        font-size: 20px;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .checkout-brand__subtitle {
        font-size: 13px;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .checkout-header__free-item,
    .checkout-header__free-item:hover,
    .checkout-header__free-item:focus,
    .checkout-header__free-content,
    .checkout-header__free-text,
    .checkout-header__link-menu-label,
    .checkout-header__subbar-area,
    .checkout-header__subbar-content {
        font-size: 13px;
    }

    .checkout-header--links-right .checkout-header__subbar-left,
    .checkout-header--links-right .checkout-header__subbar-right {
        justify-content: flex-start;
        order: initial;
    }

    .checkout-header__subbar {
        padding: 0 12px;
    }

    .checkout-header__subbar-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        padding: 8px 0;
    }

    .checkout-header__mobile-toggle {
        display: inline-flex;
        width: fit-content;
    }

    .checkout-header__subbar-content-wrap {
        align-items: stretch;
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .checkout-header.is-mobile-open .checkout-header__subbar-content-wrap {
        display: flex;
    }

    .checkout-header__subbar-left,
    .checkout-header__subbar-right {
        flex: 1 1 100%;
        justify-content: flex-start;
        width: 100%;
    }

    .checkout-header__subbar-right {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .checkout-links-menu {
        display: none;
    }

    .checkout-links-menu--root-link {
        display: inline-flex;
    }

    .checkout-links-menu--root-link .checkout-links-menu__panel {
        display: none !important;
    }

    .checkout-header__link-menu--mobile {
        display: flex;
        flex-wrap: wrap;
    }

    .checkout-header__link-menu-select {
        min-width: 0;
    }

    .checkout-header__subbar-item,
    .checkout-header__subbar-item:hover,
    .checkout-header__subbar-item:focus {
        padding: 6px 0;
    }

    .checkout-header__subbar-node {
        display: block;
        width: 100%;
    }

    .checkout-header__subbar-caret {
        display: none;
    }

    .checkout-header__subbar-children {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: block;
        margin: 0 0 6px;
        max-width: none;
        min-width: 0;
        padding: 0 0 0 14px;
        position: static;
        width: 100%;
    }

    .checkout-header__subbar-children .checkout-header__subbar-item,
    .checkout-header__subbar-children .checkout-header__subbar-item:hover,
    .checkout-header__subbar-children .checkout-header__subbar-item:focus {
        background: transparent;
        padding: 4px 0;
        width: 100%;
    }
}
