/* Isolate homepage header/footer when they are embedded into legacy page bodies. */
.buyer-platform.buyer-platform--chrome-only {
    min-inline-size: 0;
    min-block-size: 0;
    isolation: auto;
    position: relative;
    z-index: 600;
    background: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    color: var(--gmx-ink, #1d2530);
}

.buyer-platform.buyer-platform--chrome-only.buyer-platform--footer {
    z-index: 1;
    background: transparent;
}

.buyer-platform.buyer-platform--chrome-only,
.buyer-platform.buyer-platform--chrome-only * {
    box-sizing: border-box;
}

.buyer-platform.buyer-platform--chrome-only a {
    color: inherit;
    text-decoration: none;
}

.buyer-platform.buyer-platform--chrome-only img {
    max-width: none;
    max-inline-size: none;
}

.buyer-platform.buyer-platform--chrome-only .buyer-site-header,
.buyer-platform.buyer-platform--chrome-only .buyer-site-footer {
    width: 100%;
    max-width: 100%;
}

.buyer-platform.buyer-platform--chrome-only .buyer-site-footer {
    overflow-x: hidden;
}

.buyer-platform.buyer-platform--chrome-only .buyer-category-panel:not([hidden]) {
    position: fixed;
    z-index: 1000;
    inset: 0;
}

.buyer-legacy-body .visual_plugins_container[data-type="header"],
.buyer-legacy-body .visual_plugins_container[data-type="footer"],
.buyer-legacy-body .visual_plugins_container[data-type="banner"] {
    display: none !important;
}

/* Keep poster page titles; strip the decorative banner image under the new header. */
.buyer-legacy-body .visual_plugins_container[data-type="poster"]:not(:has(.banner_title)):not(:has(.banner_subtitle)) {
    display: none !important;
}

.buyer-legacy-body .visual_plugins_container[data-type="poster"] .banner_bg,
.buyer-legacy-body .visual_plugins_container[data-type="poster"] .banner_overlay {
    display: none !important;
}

.buyer-legacy-body .visual_plugins_container[data-type="poster"] .banner_container {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #f4f6f8;
}

.buyer-legacy-body .visual_plugins_container[data-type="poster"] .banner_content {
    position: static !important;
    top: auto !important;
    transform: none !important;
    padding: 32px 20px 8px;
}

.buyer-legacy-body .visual_plugins_container[data-type="poster"] .banner_title,
.buyer-legacy-body .visual_plugins_container[data-type="poster"] .banner_subtitle {
    color: #18212c !important;
    animation: none !important;
}
