/* ==========================================================================
   Original Amerce — Compact Hybrid Mega Menu, Rewards Popover & DTFTown Bar
   Strictly scoped so pages, products, cart & mobile offcanvas work 100% natively.
   ========================================================================== */

:root {
    --amerce-mega-max-w: 960px;
    --amerce-mega-col1: #0052A5;
    --amerce-mega-col2: #FF6B00;
    --amerce-mega-card-bg1: #0A1138;
    --amerce-mega-card-bg2: #0052A5;
    --amerce-mega-btn: #0052A5;
}

/* Ensure header rows stack properly so top search/rewards and main menu dropdowns
   always render above lower rows and page content */
.tf-header .header-inner_wrap {
    position: relative;
    z-index: 120 !important;
}

.tf-header .header-bottom_wrap {
    position: relative;
    z-index: 110 !important;
}

.tf-header .header-inner,
.tf-header .header-bottom {
    position: relative;
}

.tf-header .box-nav-menu > li.menu-item.has-amerce-mega {
    position: static !important;
}

.tf-header .box-nav-menu > li.menu-item.has-amerce-mega > a.item-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tf-header .box-nav-menu > li.menu-item.has-amerce-mega > a.item-link .demo-label {
    margin-left: 2px;
    font-size: 10px;
    line-height: 12px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 700;
}

.tf-header .box-nav-menu > li.menu-item.has-amerce-mega.is-mega-open > a.item-link {
    color: var(--amerce-mega-col1, var(--primary, #0052A5));
}

.tf-header .box-nav-menu > li.menu-item.has-amerce-mega.is-mega-open > a.item-link .icon-CaretDown {
    transform: rotate(180deg);
}

/* ---- Optional 2nd-row Category Mega Menu Bar ---- */
.amerce-megabar-wrap {
    position: relative;
    z-index: 95;
    background: var(--white, #ffffff);
    border-top: 1px solid var(--line, #e9e9e9);
    border-bottom: 1px solid var(--line, #e9e9e9);
}

.amerce-megabar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 44px;
}

.amerce-megabar-nav {
    flex: 1 1 auto;
}

.amerce-megabar-list.box-nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.amerce-megabar-list.box-nav-menu > li.menu-item > a.item-link {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text, #101010);
}

.amerce-megabar-right {
    flex-shrink: 0;
}

/* ==========================================================================
   1. GREEN MARK: Compact Hybrid Mega Menu Dropdown Panel (Centered Under Item)
   ========================================================================== */
.tf-header .sub-menu.amerce-mega-panel {
    --mega-arrow-x: 50%;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    width: calc(100vw - 32px) !important;
    max-width: var(--amerce-mega-max-w, 960px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0A1138 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 48px -12px rgba(10, 17, 56, 0.22), 0 4px 14px rgba(10, 17, 56, 0.07) !important;
    z-index: 1050 !important;
    text-align: left !important;
    overflow: visible !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease, left 0.14s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Invisible hover bridge so moving cursor from nav link to panel never drops hover */
.tf-header .sub-menu.amerce-mega-panel::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

/* Top pointer diamond pointing right at the hovered menu button */
.tf-header .sub-menu.amerce-mega-panel::after {
    content: "";
    position: absolute;
    top: -6px;
    left: var(--mega-arrow-x, 50%);
    width: 12px;
    height: 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    transform: translateX(-50%) rotate(45deg);
    z-index: 2;
    pointer-events: none;
}

.tf-header:not(.has-js-mega-active) .menu-item.has-amerce-mega:hover > .sub-menu.amerce-mega-panel,
.tf-header .menu-item.has-amerce-mega.is-mega-open > .sub-menu.amerce-mega-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* ---- Top Strip (.amerce-compact-topbar) ---- */
.amerce-compact-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 18px 18px 0 0;
    position: relative;
    z-index: 3;
}

.amerce-compact-topbar__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.amerce-compact-topbar__title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.amerce-compact-topbar__dot {
    color: #cbd5e1;
    font-size: 12px;
}

.amerce-compact-topbar__sub {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amerce-compact-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--amerce-mega-col1, #0052A5) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.15s ease, color 0.15s ease;
}

.amerce-compact-topbar__link:hover {
    transform: translateX(2px);
    color: #1d4ed8 !important;
}

.amerce-compact-topbar__arrow {
    font-size: 12px;
    line-height: 1;
}

/* ---- Main 3-Column Grid ---- */
.amerce-compact-shell {
    padding: 16px 20px;
    background: #ffffff;
}

.amerce-compact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 275px;
    gap: 18px;
    align-items: start;
}

.amerce-compact-col {
    min-width: 0 !important;
}

.amerce-compact-heading.menu-heading {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding-bottom: 7px !important;
    margin: 0 0 8px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    line-height: 1.3 !important;
}

.amerce-compact-heading.is-col-1 {
    color: var(--amerce-mega-col1, #0052A5) !important;
}

.amerce-compact-heading.is-col-2 {
    color: var(--amerce-mega-col2, #FF6B00) !important;
}

.amerce-compact-list.sub-menu_list {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.amerce-compact-list.sub-menu_list > li {
    margin: 0 !important;
    padding: 0 !important;
}

.amerce-compact-card.sub-menu_link {
    display: flex !important;
    align-items: flex-start !important;
    gap: 11px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    white-space: normal !important;
    text-decoration: none !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease !important;
}

.amerce-compact-card.sub-menu_link.is-featured {
    background: #f0f6ff !important;
    border-color: rgba(0, 82, 165, 0.16) !important;
}

.amerce-compact-card.sub-menu_link:hover {
    background: #f4f8ff !important;
    border-color: rgba(0, 82, 165, 0.22) !important;
}

.amerce-compact-card.sub-menu_link .cus-text::after {
    display: none !important;
}

/* ---- Icon Box (36x36 rounded square) ---- */
.amerce-compact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.16s ease;
    overflow: hidden;
}

.amerce-compact-icon__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amerce-compact-icon.tone-blue-solid {
    background: var(--amerce-mega-col1, #0052A5);
    color: #ffffff;
}

.amerce-compact-icon.tone-blue {
    background: #e8f1ff;
    color: #0052A5;
}

.amerce-compact-icon.tone-orange {
    background: #fff0e6;
    color: #FF6B00;
}

.amerce-compact-icon.tone-amber {
    background: #fef3c7;
    color: #b45309;
}

.amerce-compact-icon.tone-emerald {
    background: #d1fae5;
    color: #047857;
}

.amerce-compact-icon.tone-slate {
    background: #f1f5f9;
    color: #0f172a;
}

.amerce-compact-icon.tone-purple {
    background: #f3e8ff;
    color: #6d28d9;
}

.amerce-compact-card:hover .amerce-compact-icon {
    transform: scale(1.05);
}

.amerce-compact-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.amerce-compact-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.amerce-compact-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    color: #0A1138 !important;
}

.amerce-compact-card:hover .amerce-compact-title {
    color: var(--amerce-mega-col1, #0052A5) !important;
}

.amerce-compact-badge {
    display: inline-flex;
    align-items: center;
    padding: 1.5px 6px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff !important;
}

.amerce-compact-badge.is-orange {
    background: var(--amerce-mega-col2, #FF6B00);
}

.amerce-compact-badge.is-blue {
    background: var(--amerce-mega-col1, #0052A5);
}

.amerce-compact-desc {
    display: block;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Right Column: Visual Category Showcase Card + Featured Product Mini-Card ---- */
.amerce-compact-aside {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amerce-cat-showcase {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.amerce-cat-showcase__media {
    position: relative;
    display: block;
    height: 96px;
    background: #e2e8f0;
    overflow: hidden;
}

.amerce-cat-showcase__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.amerce-cat-showcase:hover .amerce-cat-showcase__media img {
    transform: scale(1.04);
}

.amerce-cat-showcase__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--amerce-mega-btn, #0052A5);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 82, 165, 0.3);
}

.amerce-cat-showcase__body {
    padding: 10px 12px 11px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amerce-cat-showcase__title {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
}

.amerce-cat-showcase__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.amerce-cat-showcase__desc {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    color: #64748b !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.amerce-cat-showcase__btn {
    margin-top: 3px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    width: 100%;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--amerce-mega-btn, #0052A5) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: filter 0.15s ease, transform 0.15s ease !important;
}

.amerce-cat-showcase__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.amerce-cat-showcase__arrow {
    font-size: 11px;
    line-height: 1;
}

/* ---- Featured Product Mini-Card below Category Showcase Card ---- */
.amerce-feat-mini {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 7px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.amerce-feat-mini:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.08);
    transform: translateY(-1px);
}

.amerce-feat-mini__img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.amerce-feat-mini__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.22;
}

.amerce-feat-mini__tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--amerce-mega-col1, #0052A5);
}

.amerce-feat-mini__name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amerce-feat-mini__price {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1px;
}

/* ---- Optional Right Gradient Promo Card ---- */
.amerce-compact-promo {
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amerce-mega-card-bg1, #0A1138) 0%, #062b61 52%, var(--amerce-mega-card-bg2, #0052A5) 100%);
    color: #ffffff !important;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.amerce-compact-promo__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.amerce-compact-promo__badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--amerce-mega-col2, #FF6B00);
    color: #ffffff !important;
}

.amerce-compact-promo__title {
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
}

.amerce-compact-promo__desc {
    font-size: 12px !important;
    line-height: 1.48 !important;
    color: #dbeafe !important;
    margin: 0 !important;
}

.amerce-compact-promo__bottom {
    margin-top: 14px;
}

.amerce-compact-promo__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--amerce-mega-col2, #FF6B00) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.28);
    transition: transform 0.16s ease, filter 0.16s ease !important;
}

/* ---- Bottom Strip (.amerce-compact-bottombar) ---- */
.amerce-compact-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 22px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 18px 18px;
    flex-wrap: wrap;
}

.amerce-compact-bottombar__perks {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.amerce-compact-bottombar__perk {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.amerce-perk-ico {
    font-size: 12px;
    line-height: 1;
}

.amerce-perk-ico.is-amber {
    color: #f59e0b;
}

.amerce-perk-ico.is-emerald {
    color: #10b981;
    font-weight: 900;
}

.amerce-perk-ico.is-blue {
    color: #2563eb;
}

.amerce-compact-bottombar__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.amerce-compact-bottombar__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.amerce-compact-bottombar__link:hover {
    color: var(--amerce-mega-col1, #0052A5) !important;
}

/* ==========================================================================
   2. YELLOW MARK: TidalColors-Style Rewards Button & Popover Next to Search
   ========================================================================== */
.tf-header .header-inner_wrap {
    position: relative;
    z-index: 60;
}

.tf-header.has-js-rewards-active .header-inner_wrap,
.tf-header .header-inner_wrap:has(.amerce-rewards-wrap:hover),
.tf-header .header-inner_wrap:has(.amerce-rewards-wrap.is-rewards-open) {
    z-index: 1300 !important;
}

.tf-header .header-bottom_wrap {
    position: relative;
    z-index: 50;
}

.tf-header.has-js-mega-active .header-bottom_wrap,
.tf-header .header-bottom_wrap:has(li.menu-item.has-amerce-mega.is-mega-open) {
    z-index: 1200 !important;
}

@media (min-width: 1200px) {
    .header-s8 .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;
        flex-wrap: nowrap !important;
    }
    .header-s8 .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 20px !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
    .header-s8 .header-left .logo-site {
        flex-shrink: 0 !important;
    }
    .header-s8 .header-left .wrap-left {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
    .header-s8 .header-left .nav-category-wrap {
        flex-shrink: 0 !important;
    }
    .header-s8 .form-search-nav.style-5 {
        flex: 1 1 200px !important;
        width: 100% !important;
        max-width: 470px !important;
        min-width: 170px !important;
    }
    .header-s8 .header-right {
        flex-shrink: 0 !important;
    }
}

.amerce-rewards-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    flex-shrink: 0;
    z-index: 140;
}

.amerce-rewards-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 12px;
    background: var(--rw-btn-bg, #D9F3E4) !important;
    border: 1px solid var(--rw-btn-border, #9FE3BC) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    white-space: nowrap;
}

.amerce-rewards-btn:hover,
.amerce-rewards-wrap.is-rewards-open .amerce-rewards-btn {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.16);
}

.amerce-rewards-btn__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rw-icon-bg, #16A34A);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.amerce-rewards-btn__icon i,
.amerce-rewards-btn__icon span,
.amerce-rewards-btn__icon svg {
    color: #ffffff !important;
    line-height: 1;
}

.amerce-rewards-btn__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amerce-rewards-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.18;
    text-align: left;
}

.amerce-rewards-btn__title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--rw-title-col, #0F172A) !important;
    letter-spacing: -0.01em;
}

.amerce-rewards-btn__sub {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rw-sub-col, #15803D) !important;
}

.amerce-rewards-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 600px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 24px 56px -12px rgba(15, 23, 42, 0.26), 0 6px 18px rgba(15, 23, 42, 0.08);
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1350;
}

/* Unclipped hover bridge between button and popover */
.amerce-rewards-popover::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.amerce-rewards-wrap.is-rewards-open .amerce-rewards-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.amerce-rewards-popover__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    min-height: 290px;
    border-radius: 21px;
    overflow: hidden;
}

.amerce-rewards-popover__content {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.amerce-rewards-popover__heading {
    margin: 0 0 12px 0 !important;
    display: flex;
    flex-direction: column;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em;
}

.amerce-rewards-popover__h1 {
    color: #0F172A;
}

.amerce-rewards-popover__h2 {
    color: var(--rw-h2-col, #0E7490);
}

.amerce-rewards-popover__desc {
    margin: 0 0 20px 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #475569 !important;
}

.amerce-rewards-popover__strong {
    color: #0F172A;
    font-weight: 800;
}

.amerce-rewards-popover__cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--rw-cta-bg, #FF7849) !important;
    color: #0F172A !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.amerce-rewards-popover__cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 8px 20px rgba(255, 120, 73, 0.35);
    color: #0F172A !important;
}

.amerce-rewards-popover__media {
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
}

.amerce-rewards-popover__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   3. PURPLE MARK: DTFTown-Style Rounded Action Pill Bar (Phone, Support, Account, Cart)
   ========================================================================== */
.amerce-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 8px 18px;
    border-radius: 16px;
    background: var(--pill-bg, #F4EFEA);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.amerce-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
    color: var(--pill-text, #18181B) !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.amerce-pill-item:hover {
    transform: translateY(-1px);
    color: var(--amerce-mega-col1, #0052A5) !important;
}

.amerce-pill-item__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 21px;
    color: var(--pill-text, #18181B);
    flex-shrink: 0;
}

.amerce-pill-item:hover .amerce-pill-item__icon {
    color: var(--amerce-mega-col1, #0052A5);
}

.amerce-pill-item__img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.amerce-pill-dot {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EA580C;
    border: 1.5px solid var(--pill-bg, #F4EFEA);
}

.amerce-pill-badge.count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary, #DC4646);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}

.amerce-pill-item__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.18;
    text-align: left;
}

.amerce-pill-item__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pill-label, #78716C);
}

.amerce-pill-item__val {
    font-size: 13px;
    font-weight: 700;
    color: var(--pill-text, #18181B);
}

.amerce-pill-item:hover .amerce-pill-item__val {
    color: var(--amerce-mega-col1, #0052A5);
}

/* ==========================================================================
   4. GREEN & RED MARK: Colorful Right-Side Menu Strip & Promo Badge
   ========================================================================== */
.header-bottom .col-right,
.amerce-megabar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.amerce-right-menu-strip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.amerce-rpill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.amerce-rpill.is-solid {
    background: var(--rp-bg, #FF6B00);
    color: var(--rp-color, #FFFFFF) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.10);
}

.amerce-rpill.is-soft {
    background: #f0f6ff;
    color: var(--rp-bg, #0052A5) !important;
    border: 1px solid rgba(0, 82, 165, 0.22);
}

.amerce-rpill:hover {
    transform: translateY(-1.5px);
    filter: brightness(1.06);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.amerce-rpill.is-solid:hover {
    color: var(--rp-color, #FFFFFF) !important;
}

.amerce-rpill__ico {
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.amerce-rpill__img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    flex-shrink: 0;
}

.amerce-rpill__text {
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.amerce-rpill__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.24);
    color: inherit;
    line-height: 1.1;
}

.amerce-rpill.is-soft .amerce-rpill__badge {
    background: var(--rp-bg, #0052A5);
    color: #ffffff;
}

.amerce-menu-right-promo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(0, 82, 165, 0.07);
    border: 1px solid rgba(0, 82, 165, 0.16);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--mrp-color, #0052A5) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.amerce-menu-right-promo:hover {
    background: rgba(0, 82, 165, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.10);
}

.amerce-menu-right-promo__icon {
    font-size: var(--mrp-size, 19px) !important;
    line-height: 1;
    color: var(--mrp-color, #0052A5);
}

.amerce-menu-right-promo__emoji {
    font-size: var(--mrp-size, 19px);
    line-height: 1;
}

.amerce-menu-right-promo__img {
    width: var(--mrp-size, 19px);
    height: var(--mrp-size, 19px);
    object-fit: contain;
    flex-shrink: 0;
}

.amerce-menu-right-promo__text {
    line-height: 1.25;
}

/* ---- Responsive Breakpoints for Laptop / Tablet / Mobile ---- */
@media (max-width: 1560px) {
    .amerce-action-pill {
        gap: 13px;
        padding: 7px 14px;
    }
    .amerce-pill-item__val {
        font-size: 12px;
    }
    .amerce-rpill {
        padding: 5px 11px;
        font-size: 12px;
    }
    .amerce-menu-right-promo {
        padding: 5px 11px;
        font-size: 12px;
    }
}

@media (max-width: 1400px) {
    /* On standard 1280px-1400px laptops, keep everything sleek on one row */
    .amerce-action-pill {
        gap: 11px;
        padding: 6px 12px;
    }
    .amerce-rewards-btn {
        padding: 5px 11px 5px 7px;
        gap: 8px;
    }
    .amerce-rewards-btn__icon {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    .amerce-rewards-btn__title {
        font-size: 12.5px;
    }
    .amerce-rewards-btn__sub {
        font-size: 10.5px;
    }
    .amerce-right-menu-strip {
        gap: 6px;
    }
    .amerce-rpill {
        padding: 5px 10px;
        font-size: 11.5px;
    }
}

@media (max-width: 1279px) {
    .amerce-compact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 245px;
        gap: 14px;
    }
    .amerce-compact-shell {
        padding: 14px 18px;
    }
    .amerce-compact-topbar__sub,
    .amerce-compact-topbar__dot {
        display: none;
    }
    .amerce-right-menu-strip .amerce-rpill:nth-child(3) {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .amerce-rewards-popover {
        width: calc(100vw - 24px);
    }
    .amerce-rewards-popover__grid {
        grid-template-columns: 1fr;
    }
    .amerce-rewards-popover__media {
        height: 180px;
    }
}

/* ---- Dark Mode Compatibility ---- */
[data-bs-theme="dark"] .amerce-megabar-wrap,
[data-bs-theme="dark"] .tf-header .sub-menu.amerce-mega-panel,
[data-bs-theme="dark"] .amerce-compact-shell,
[data-bs-theme="dark"] .amerce-rewards-popover {
    background: var(--at-card-bg, #161616) !important;
    border-color: var(--at-border-color, #2a2a2a) !important;
}

[data-bs-theme="dark"] .amerce-compact-topbar,
[data-bs-theme="dark"] .amerce-compact-bottombar,
[data-bs-theme="dark"] .amerce-cat-showcase,
[data-bs-theme="dark"] .amerce-action-pill {
    background: #1e1e1e !important;
    border-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .amerce-feat-mini {
    background: #161616 !important;
    border-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .amerce-compact-title,
[data-bs-theme="dark"] .amerce-compact-topbar__title,
[data-bs-theme="dark"] .amerce-cat-showcase__title,
[data-bs-theme="dark"] .amerce-feat-mini__name,
[data-bs-theme="dark"] .amerce-feat-mini__price,
[data-bs-theme="dark"] .amerce-compact-bottombar__link,
[data-bs-theme="dark"] .amerce-pill-item__val,
[data-bs-theme="dark"] .amerce-pill-item__icon,
[data-bs-theme="dark"] .amerce-rewards-popover__h1,
[data-bs-theme="dark"] .amerce-rewards-popover__strong,
[data-bs-theme="dark"] .amerce-megabar-list.box-nav-menu > li.menu-item > a.item-link {
    color: var(--at-heading-color, #ffffff) !important;
}
