/* ==========================================================================
   HEADER – BASE STRUCTURE
   Controls layout, spacing, alignment for the entire header
   ========================================================================== */

.header-wrapper,
#ebuy-header {
    width: 100%;
    background: var(--eb-header-bg);
    border-bottom: 1px solid var(--eb-header-border);
    display: flex;
    flex-direction: column;
    z-index: var(--eb-z-sticky);
    position: sticky;
    top: 0;
}

.ecosystem-rail {
    background: var(--eb-white);
    border-bottom: 1px solid var(--eb-border-default);
}

.ecosystem-rail__inner {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eb-space-3);
}

.ecosystem-rail__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}


.ecosystem-rail__link:first-child
{
    padding-left: 0;
}

.ecosystem-rail__link {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0 .55rem;
    color: var(--eb-gray-900);
    font-size: .8rem;
    font-weight:normal;
    text-decoration: none;
    /*border-radius: 999px;*/
    transition: color .15s ease, background .15s ease;
}

.ecosystem-rail__link:hover,
.ecosystem-rail__link.is-active {
    color: var(--eb-gray-900);
}

.ecosystem-rail__meta {
    color: var(--eb-gray-500);
    font-size: 11px;
    font-weight: 500;
}

/* Main nav container. White header (UI standard, locked decision 1): blue is kept for the
   logo, the Sell button and active states. #ebuy-header outranks the blue .main-header rule
   in community.css, which loads later and is mirrored into the community app. */
.main-header,
#ebuy-header .main-header {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--eb-header-bg);
}

.main-header__container {
    display: flex;
    align-items: center;
    gap: var(--eb-space-3);
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.main-header__brand {
    flex-shrink: 0;
}

.main-header__app-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 50%;
    border: 1px solid var(--eb-border-default);
    background: var(--eb-surface-subtle);
    color: var(--eb-gray-900);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.main-header__primary {
    display: flex;
    align-items: center;
    gap: var(--eb-space-3);
    min-width: 0;
}

.main-header__search {
    flex: 1 1 520px;
    min-width: min(280px, 100%);
}

/* Desktop: the search grows into the free space instead of demanding 520px up front,
   which is what pushed the actions onto a second row below 1300px. The extra class beats
   the same selector in the shared community.css, which loads later. */
@media (min-width: 992px) {
    .main-header .main-header__search {
        flex: 1 1 240px;
        min-width: 240px;
    }
}

.main-header__search-shell {
    display: flex;
    align-items: center;
    gap: var(--eb-space-3);
    width: 100%;
}

.main-header__search-form {
    flex: 1 1 auto;
}

.main-header__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.main-header__actions--guest {
    gap: var(--eb-space-5);
}

.header-primary-link {
    color: var(--eb-gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.header-primary-link:hover,
.header-primary-link.is-active {
    color: var(--eb-primary-700);
}

.header-workspace-trigger,
.header-account-trigger {
    border: 1px solid var(--eb-border-default);
    background: var(--eb-header-bg);
    color: var(--eb-gray-900);
    min-height: 42px;
    padding: var(--eb-space-2);
    border-radius: var(--eb-radius-0);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-account-trigger {
    gap: 8px;
    padding: 6px 10px 6px 8px;
}

.header-account-trigger--compact {
    padding-right: 8px;
}

.header-workspace-trigger:hover,
.header-account-trigger:hover,
.header-workspace-link:hover {
    border-color: var(--eb-border-strong);
}

.header-workspace-trigger__caret,
.header-account-trigger__caret {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

.header-account-trigger__avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--eb-radius-0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--eb-primary-700);
    color: var(--eb-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-account-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-account-trigger__label {
    line-height: 1;
    white-space: nowrap;
}

.header-account-trigger__icon svg,
.header-workspace-trigger svg {
    width: 16px;
    height: 16px;
}

.main-header .header-browse-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0 .75rem;
    color: var(--eb-gray-900);
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.main-header .header-browse-link:hover,
.main-header .header-browse-link[aria-current="page"] {
    color: var(--eb-primary-700);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header-guest-ctas {
    align-items: center;
    gap: var(--eb-space-4);
}

.header-guest-cta {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: var(--eb-radius-0);
    border: 1px solid var(--eb-border-strong);
    background: var(--eb-header-bg);
    color: var(--eb-gray-900);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-guest-cta:hover {
    color: var(--eb-primary-700);
}

.header-guest-cta--ghost {
    border-color: transparent;
    background: transparent;
    padding-left: 4px;
    padding-right: 4px;
}

.header-guest-cta--secondary:hover {
    border-color: var(--eb-primary-700);
}

/* The one blue button in the header: Sell for guests and buyers, New Listing for sellers. */
.header-guest-cta--primary {
    background: var(--eb-primary-700);
    color: var(--eb-white);
    border-color: var(--eb-primary-700);
}

.header-guest-cta--primary:hover {
    background: var(--eb-primary-800);
    border-color: var(--eb-primary-800);
    color: var(--eb-white);
}

.header-nav-dropdown {
    min-width: 340px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.header-nav-dropdown__panel {
    border-radius: var(--eb-radius-0);
    box-shadow: var(--eb-shadow-soft-floating);
}

.header-nav-dropdown--account {
    /* Compact account card: 220px matches the icon-led navigation rows. */
    min-width: 13.75rem;
}

.header-nav-dropdown--account .header-nav-dropdown__panel {
    max-height: min(72vh, 560px);
    overflow: hidden;
}

.header-nav-dropdown--account .sidebar-accordion {
    max-height: min(72vh, 460px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 0 10px;
}

.header-nav-dropdown--account .sidebar-group__label {
    padding-top: 8px;
    padding-bottom: 6px;
}

.header-nav-dropdown--account .sidebar-link-row {
    min-height: 48px;
    padding: 12px 18px;
}

.header-nav-dropdown.header-nav-dropdown--account .sidebar-link-row__icon {
    width: 20px;
    height: 20px;
}

.header-nav-dropdown--account .sidebar-link-row__description {
    display: none;
}

.header-nav-dropdown .sidebar-panel__heading {
    font-size: 18px;
}

.header-nav-dropdown .sidebar-accordion {
    padding-top: 4px;
}

.header-nav-dropdown .sidebar-group__label {
    padding-top: 10px;
}

.header-nav-dropdown .sidebar-link-row {
    /*padding-top: 10px;
    padding-bottom: 10px;*/
}

.header-nav-dropdown .sidebar-link-row__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--eb-radius-0);
}

.header-nav-dropdown .sidebar-link-row__icon svg {
    width: 16px;
    height: 16px;
}

.navbar-brand img {
    height: auto;
    max-height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Desktop container spacing */
#desktopMenu {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Icon cluster wrapper */
.header-icons {
    display: flex;
    align-items: center;
    margin-left: var(--eb-space-3);
}

/* Generic header icon */
.header-icon {
    font-size: 20px;
    color: var(--eb-header-icon);
    position: relative;
    cursor: pointer;
    transition: 0.2s ease;
    background: transparent;
    border: 0;
    padding: var(--eb-space-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.header-icon svg {
    width: 20px;
    height: 20px;
}

.header-icon-button {
    appearance: none;
}

.header-avatar__initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--eb-header-avatar-bg);
    color: var(--eb-header-avatar-text);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.header-icon:hover {
    color: var(--eb-primary-700);
}

/* Shared header counters, including messages and notifications. */
.header-count-badge,
.cart-badge,
.notif-badge,
.wishlist-badge,
.watchlist-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(35%, -35%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;
    background: var(--eb-header-badge-bg);
    color: var(--eb-header-badge-text);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    border: 2px solid var(--eb-header-bg);
    border-radius: 50%;
}

.header-count-badge.is-empty {
    background: var(--eb-white-00);
    color: var(--eb-white);
    display: none;
}

.notif-menu {
    min-width: 360px;
    max-width: 420px;
    border-radius: var(--eb-radius-0);
    overflow: hidden;
    border: 1px solid var(--eb-header-notif-header-border);
    background: var(--eb-bg-card);
    box-shadow: var(--eb-shadow-lg);
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--eb-space-3);
    padding: 12px 14px;
    border-bottom: 1px solid var(--eb-header-notif-header-border);
    background: linear-gradient(180deg, var(--eb-header-notif-header-bg) 0%, var(--eb-white) 100%);
}

.notif-header__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eb-gray-700);
}

.notif-clear-btn {
    border: 1px solid var(--eb-gray-200);
    background: var(--eb-white);
    color: var(--eb-gray-700);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--eb-radius-0);
    transition: 0.2s ease;
}

.notif-clear-form {
    margin: 0;
}

.notif-clear-btn:hover {
    border-color: var(--eb-primary-500);
    color: var(--eb-primary-700);
    background: var(--eb-primary-50);
}

.header-text-link-light
{
    color: var(--eb-gray-700);
}

.header-mobile-trigger {
    margin-left: var(--eb-space-1);
}

.main-header__mobile-quick-actions {
    align-items: center;
    gap: 10px;
}

.main-header__mobile-quick-actions .header-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: var(--eb-radius-0);
    border: 1px solid var(--eb-border-default);
    background: var(--eb-header-bg);
}

.main-header__mobile-quick-actions .header-mobile-trigger {
    margin-left: 0;
}

.sidebar-panel--global-nav .sidebar-panel__heading {
    font-size: 20px;
}

@media (max-width: 767.98px) {
    .main-header .container {
        padding-top: 4px;
        padding-bottom: 4px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .navbar-brand img {
        height: auto;
        max-height: 32px;
        width: auto;
    }

    .navbar-brand .badge {
        display: inline-flex;
        align-items: center;
        font-size: 10px;
        padding: 2px 6px;
    }

    .navbar-brand {
        order: 1;
    }

    .header-icons {
        order: 3;
        margin-left: auto;
    }

    .search-wrap {
        order: 4;
        width: 100%;
    }

    .main-header__actions--guest {
        gap: var(--eb-space-2);
    }

    .header-icon {
        font-size: 18px;
    }

    .main-header__search-shell {
        gap: var(--eb-space-2);
    }

    .header-guest-ctas {
        gap: var(--eb-space-2);
    }

    .header-guest-cta {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 14px;
    }

    .header-guest-cta--ghost {
        padding-left: 0;
        padding-right: 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .header-avatar__initial {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .main-header__container {
        gap: var(--eb-space-2);
    }
}

/* Constant bottom-center action on phones. Sits under overlays and drawers, above the
   PWA install banner, and inside the device safe area. */
.mobile-sell-action {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    transform: translateX(-50%);
    z-index: var(--eb-z-sticky);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    overflow: hidden;
    border-radius: var(--eb-radius-0);
    background: var(--eb-primary-700);
    color: var(--eb-white);
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* A single light sweep that invites a first sale; the script runs it once per session. */
.mobile-sell-action::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
    transform: translateX(-100%);
    pointer-events: none;
}

.mobile-sell-action.is-nudging::after {
    animation: eb-sell-sweep 1.1s ease-out 1;
}

@keyframes eb-sell-sweep {
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-sell-action.is-nudging::after {
        animation: none;
    }
}

.mobile-sell-action:hover,
.mobile-sell-action:focus-visible {
    color: var(--eb-white, #fff);
    filter: brightness(1.08);
}

.mobile-sell-action i,
.mobile-sell-action svg {
    width: 1rem;
    height: 1rem;
}

.eb-pwa-banner-open .mobile-sell-action {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.75rem);
}

/* Blocking layers own the screen: dialogs, drawers and the confirm overlay. */
body.modal-open .mobile-sell-action,
body:has(.offcanvas.show) .mobile-sell-action,
body:has(#eb-confirm-overlay.eb-confirm--visible) .mobile-sell-action {
    display: none;
}

@media (max-width: 991.98px) {
    /* Keep the last row of content and the footer clear of the fixed action. */
    body:has(.mobile-sell-action) {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    /* The install banner and the lifted action both sit over the page end while it is open. */
    .eb-pwa-banner-open body:has(.mobile-sell-action) {
        padding-bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 992px) {
    .mobile-sell-action {
        display: none;
    }
}

/* Keyboard focus and touch targets for the header controls (WCAG 2.2: 2.4.7, 2.5.8).
   Every control is at least 24px; primary controls reach 44px on touch screens. */
.header-icon:focus-visible,
.header-mobile-trigger:focus-visible,
.header-account-trigger:focus-visible,
.header-guest-cta:focus-visible,
.header-browse-link:focus-visible,
.header-category-trigger:focus-visible,
.ecosystem-rail__link:focus-visible {
    outline: 2px solid var(--eb-border-focus);
    outline-offset: 2px;
}

.ecosystem-rail__link:focus-visible {
    outline-color: var(--eb-primary-700);
    box-shadow: none;
}

@media (pointer: coarse) {
    .header-icon,
    .header-mobile-trigger,
    .header-account-trigger,
    .header-category-trigger {
        min-width: 44px;
        min-height: 44px;
    }

    .header-guest-cta,
    .header-browse-link {
        min-height: 44px;
    }
}

/* Menu rows, drawer close and tab links (WCAG 2.2: 2.4.7, 2.5.8). Kept here, not in the
   shared sidebar and tabs stylesheets, because those are mirrored into sibling apps. */
.sidebar-link-row:focus-visible,
.sidebar-drawer__close:focus-visible {
    outline: 2px solid var(--eb-primary-700);
    outline-offset: -2px;
}

@media (pointer: coarse) {
    .sidebar-link-row {
        min-height: 44px;
    }

    .sidebar-drawer__close {
        min-width: 44px;
        min-height: 44px;
    }

    .eb-tabs__link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Compact phone header (only where the payload opts in through .main-header--compact-phone):
   Menu, Logo, then the role's own actions on one short row. Roles with search
   (.main-header--phone-search) keep it open as a full-width row underneath. The actions wrapper dissolves so Menu can lead without changing the
   desktop markup. */
@media (max-width: 991.98px) {
    .main-header--compact-phone {
        padding: 0;
    }

    .main-header--compact-phone .main-header__container {
        flex-wrap: wrap;
        gap: 4px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .main-header--compact-phone .main-header__actions {
        display: contents;
    }

    .main-header--compact-phone .header-mobile-trigger {
        order: 0 !important;
        position: relative;
    }

    /* Exactly the 44px touch target, not the roomier desktop icon box. */
    .main-header--compact-phone .header-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-header--compact-phone .main-header__brand {
        order: 1 !important;
        margin-right: auto;
        padding: 0;
    }

    .main-header--compact-phone .main-header__brand img {
        height: 30px;
        width: auto;
    }

    .main-header--compact-phone .main-header__actions > :not(.header-mobile-trigger) {
        order: 2 !important;
    }

    .main-header--compact-phone .main-header__search {
        display: none;
        order: 3 !important;
        flex: 1 1 100% !important;
        min-width: 0;
        padding-bottom: 6px;
    }

    .main-header--compact-phone.main-header--phone-search .main-header__search {
        display: block;
    }
}

.header-menu-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--eb-danger-600, #dc2626);
    border: 2px solid var(--eb-header-bg);
}

/* The keyboard is open or a field has focus: the floating action steps aside. */
.eb-typing .mobile-sell-action {
    display: none;
}

/* Sign out is the last account action and reads as separate from the links above it. */
#headerAccountMenu-accordion .sidebar-link-form,
#globalNavDrawerMenu-accordion .sidebar-link-form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--eb-border-default);
}

/* The link right before that form already has its own border-bottom (every row gets one);
   left in place it doubles the sign-out divider into two lines with an empty gap between
   them. This is the one divider that should show. */
#headerAccountMenu-accordion .sidebar-link-row:has(+ .sidebar-link-form),
#globalNavDrawerMenu-accordion .sidebar-link-row:has(+ .sidebar-link-form) {
    border-bottom: 0;
}

/* Dashboard status cards must not push the page sideways at 320px. Kept here because
   dashboard.css is mirrored into the package and sibling apps and guarded by a mirror test. */
.db-status-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr));
}

.db-status-card {
    min-width: 0;
}

.db-status-card__label {
    overflow-wrap: anywhere;
}

/* =====================================================================
   Phone tab bar (board: Phone tab bar)
   Home, Search, Sell, Messages, Account along the bottom on phones.
   ===================================================================== */
.eb-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--eb-border-default);
  background: var(--eb-white);
}

.eb-tabbar__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--eb-gray-600);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.eb-tabbar__tab.is-active {
  color: var(--eb-primary-600);
}

.eb-tabbar__tab:focus-visible {
  outline: 2px solid var(--eb-border-focus);
  outline-offset: -2px;
}

.eb-tabbar__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.25;
}

/* Sell: the one filled tab. */
.eb-tabbar__tab--sell .eb-tabbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  background: var(--eb-primary-600);
  color: var(--eb-white);
}

.eb-tabbar__tab--sell .eb-tabbar__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.eb-tabbar__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--eb-primary-600);
  color: var(--eb-white);
  font-size: 11px;
  font-weight: 900;
}

.eb-tabbar__tab.is-active .eb-tabbar__avatar {
  outline: 2px solid var(--eb-primary-600);
  outline-offset: 1px;
}

.eb-tabbar__badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--eb-danger-600);
  color: var(--eb-white);
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

/* Room at the foot of the page, and out of the way while typing. */
@media (max-width: 991.98px) {
  /* Toasts and pinned flow actions sit on top of this. */
  body:has(.eb-tabbar) {
    --eb-tabbar-height: 64px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .eb-typing .eb-tabbar {
    display: none;
  }

  .eb-typing body:has(.eb-tabbar) {
    --eb-tabbar-height: 0px;
    padding-bottom: 0;
  }
}

/* The Account tab's sheet rises from the bottom, above the bar, full width. */
.sidebar-drawer.sidebar-drawer--bottom.offcanvas-bottom {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: calc(88vh - 64px);
  bottom: calc(64px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--eb-border-default);
}

.sidebar-drawer--bottom .sidebar-drawer__header {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 0;
  background: none;
}

.sidebar-drawer--bottom .sidebar-drawer__logo {
  display: none;
}

.sidebar-drawer--bottom .sidebar-drawer__close {
  filter: none;
}

.sidebar-drawer--bottom .offcanvas-body {
  overflow-y: auto;
  padding-top: 16px;
}

/* "‹ Account" back to the Account sheet, phones only (board: Buyer pages on a phone). */
.eb-phone-back {
    display: none;
}

@media (max-width: 767.98px) {
    .eb-phone-back {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        min-height: 44px;
        margin: -0.5rem 0 0 -0.25rem;
        padding: 0 0.25rem;
        border: 0;
        background: none;
        color: var(--eb-primary-700);
        font: inherit;
        font-weight: 700;
    }

    .eb-phone-back svg {
        width: 18px;
        height: 18px;
    }
}

/* Vault on a phone: amber count for orders to ship, and the small Vault tag by the logo. */
.eb-tabbar__badge--warning {
  background: var(--eb-warning-100);
  color: var(--eb-warning-800);
}

.header-vault-tag {
  margin-left: 0;
  padding: 2px 8px;
  border: 1px solid var(--eb-border-default);
  background: var(--eb-gray-50);
  color: var(--eb-gray-700);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Notifications panel, per the Header menus board: sentence-case title, "Mark all read" as a link, "See all notifications" at the foot. */
.notif-header__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--eb-text);
}
.notif-header { background: var(--eb-white); }
.notif-clear-btn {
    border: 0;
    background: none;
    padding: 0;
    color: var(--eb-primary-600);
    font-size: 14px;
    font-weight: 700;
}
.notif-clear-btn:hover { border: 0; background: none; color: var(--eb-primary-700); text-decoration: underline; }
.notif-see-all {
    display: block;
    padding: 14px;
    border-top: 1px solid var(--eb-border-default);
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}
