ul.ae-currency-switcher{
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

ul.ae-currency-switcher > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

li.icon-account,
li.icon-wishlist {
    display: inline-flex;
    align-items: center;
    position: relative;
}

li.icon-account > a,
li.icon-account > .ae-currency-accountMenu > .ae-currency-accountMenuToggle,
li.icon-wishlist > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 10px 2px;
    border: 0;
    background: transparent;
    color: #111;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

li.icon-account > a:hover,
li.icon-account > a:focus,
li.icon-account > .ae-currency-accountMenu > .ae-currency-accountMenuToggle:hover,
li.icon-account > .ae-currency-accountMenu > .ae-currency-accountMenuToggle:focus,
li.icon-wishlist > a:hover,
li.icon-wishlist > a:focus {
    color: #111;
    opacity: 0.72;
    transform: translateY(-1px);
    background: rgba(17, 17, 17, 0.035);
}

.ae-currency-accountIcon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.ae-currency-accountIcon svg {
    width: 100%;
    height: 100%;
}

.ae-currency-accountMenu {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: -16px;
}

.ae-currency-accountMenu::after {
    content: "";
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    width: 260px;
    height: 20px;
}

.ae-currency-accountMenuPanel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 35;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 300px;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(17, 17, 17, 0.12);
    border-radius: 0;
    overflow: hidden;
}

.ae-currency-accountMenuPanel[hidden] {
    display: none;
}

/* Paper header band — matches /account/ hero + /preferences/ side */
.ae-currency-accountMenuHead {
    padding: 18px 22px 16px;
    background: var(--ae-color-surface-soft, #f5f1ea);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.ae-currency-accountMenuEyebrow {
    margin: 0 0 4px;
    color: rgba(17, 17, 17, 0.56);
    font-family: var(--ae-font-ui, 'Montserrat__', 'Inter', sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.ae-currency-accountMenuName {
    margin: 0 0 4px;
    color: #181512;
    font-family: var(--ae-font-editorial, "Fraunces", Georgia, serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.ae-currency-accountMenuMeta {
    margin: 0;
    color: rgba(24, 21, 18, 0.6);
    font-family: var(--ae-font-editorial, "Fraunces", Georgia, serif);
    font-style: italic;
    font-size: 12.5px;
    line-height: 1.4;
}

/* Nav list */
.ae-currency-accountMenuNav {
    display: flex;
    flex-direction: column;
}

.ae-currency-accountMenuLink {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 22px;
    color: #181512;
    font-family: var(--ae-font-ui, 'Montserrat__', 'Inter', sans-serif);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    transition: background 140ms ease;
}

.ae-currency-accountMenuLink:last-child {
    border-bottom: 0;
}

.ae-currency-accountMenuLink:hover,
.ae-currency-accountMenuLink:focus {
    color: #181512;
    background: #faf8f3;
    opacity: 1;
    text-decoration: none;
}

.ae-currency-accountMenuLinkLabel {
    display: inline;
}

.ae-currency-accountMenuLinkMeta {
    font-family: var(--ae-font-editorial, "Fraunces", Georgia, serif);
    font-style: italic;
    font-weight: 400;
    font-size: 12.5px;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(24, 21, 18, 0.6);
}

/* Log out — muted, with a stronger hairline above */
.ae-currency-accountMenuLink--logout {
    color: rgba(24, 21, 18, 0.6);
    border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.ae-currency-accountMenuLink--logout:hover,
.ae-currency-accountMenuLink--logout:focus {
    color: #181512;
}

.ae-currency-heartIcon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.ae-currency-heartIcon--filled {
    display: none;
}

.ae-currency-heartIcon svg {
    width: 100%;
    height: 100%;
}

.ae-currency-wishlistCount {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    font-family: var(--ae-font-ui, 'Montserrat__', sans-serif);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
}

.ae-currency-wishlistCount[hidden] {
    display: none;
}

li.icon-wishlist.has-items > a {
    color: #111;
}

li.icon-wishlist.has-items .ae-currency-heartIcon--outline {
    display: none;
}

li.icon-wishlist.has-items .ae-currency-heartIcon--filled {
    display: inline-flex;
}

.ae-currency-switcher--dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding-left: 2px;
}

.ae-currency-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    text-align: left;
    cursor: pointer;
}

.ae-currency-switcher-toggle:hover,
.ae-currency-switcher-toggle:focus,
.ae-currency-switcher-toggle:active {
    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ae-currency-switcher-toggleText {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.ae-currency-switcher-toggleLabel {
    font-family: var(--ae-font-ui, 'Montserrat__', sans-serif);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ae-color-text, #111);
    white-space: nowrap;
}

.ae-currency-switcher-chevron {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: var(--ae-color-text, #111);
    transition: transform .2s ease;
}

.ae-currency-switcher-chevron svg {
    width: 100%;
    height: 100%;
}

.ae-currency-switcher--dropdown.--active .ae-currency-switcher-chevron {
    transform: rotate(180deg);
}

.ae-currency-switcher-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 180px;
    padding: 10px 0;
    border: 1px solid var(--ae-color-border-soft, #ece7e0);
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 50px rgba(29, 24, 17, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 30;
}

.ae-currency-switcher--dropdown.--active .ae-currency-switcher-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ae-currency-switcher-menu .ae-currency-switcher-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    color: var(--ae-color-text, #111);
    text-decoration: none;
}

.ae-currency-switcher-menu .ae-currency-switcher-item:hover,
.ae-currency-switcher-menu .ae-currency-switcher-item:focus {
    background: var(--ae-color-surface-soft, #f8f4ee);
    color: var(--ae-color-text, #111) !important;
}

.ae-currency-switcher-menu .ae-currency-switcher-item.--active {
    background: var(--ae-color-surface-selected, #f5efe7);
}

.ae-currency-switcher-itemLabel {
    font-family: var(--ae-font-ui, 'Montserrat__', sans-serif);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ae-color-text, #111);
}

.ae-currency-switcher-itemMeta {
    font-family: var(--ae-font-ui, 'Montserrat__', sans-serif);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7f7a73;
}

.ae-currency-switcher-mobile.ae-dropSwitcher-mobile {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.ae-currency-switcher-mobile.ae-dropSwitcher-mobile li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.ae-currency-switcher-mobile.ae-dropSwitcher-mobile .ae-dropSwitcher-mobileTitle {
    flex: 0 0 auto;
    font-family: var(--ae-font-ui, 'Montserrat__', sans-serif);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ae-color-text, #111);
}

.ae-currency-switcher-mobile.ae-dropSwitcher-mobile .ae-currency-switcher-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ae-currency-switcher-mobile.ae-dropSwitcher-mobile .ae-currency-switcher-name,
.ae-currency-switcher-mobile.ae-dropSwitcher-mobile .ae-currency-switcher-symbol {
    font-family: var(--ae-font-ui, 'Montserrat__', sans-serif);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ae-color-text, #111);
}

@media (max-width: 767px){
    header ul.ae-mobileNav--footerItem li> a {
        padding: 0 7px;
    }

    .ae-currency-switcher-mobile.ae-dropSwitcher-mobile {
        justify-content: flex-start;
        width: auto;
        gap: 18px;
    }

    .ae-currency-switcher-toggle {
        min-width: 0;
    }

    .ae-currency-accountMenuPanel {
        right: -10px;
        width: 260px;
        padding: 0;
    }

    .ae-currency-accountMenuHead {
        padding: 14px 18px 12px;
    }

    .ae-currency-accountMenuName {
        font-size: 19px;
    }

    .ae-currency-accountMenuLink {
        padding: 11px 18px;
        font-size: 11px;
    }

    .ae-currency-accountMenu::after {
        width: 220px;
    }
}
