/* Aphro Currency — header menu (desktop bar), phone-menu buttons, checkout
 * note. Uses the navigation's colour tokens (--dn-*) and the design fixes'
 * tokens (--adf-*) so day and night modes follow the rest of the site. */

.aphro-cur {
    --cur-ink: var(--dn-ink, #24161e);
    --cur-muted: var(--dn-muted, #6f6770);
    --cur-line: var(--dn-line, rgba(36, 22, 30, .12));
    --cur-hover: var(--dn-hover, #f8f3f1);
    --cur-panel: var(--dn-panel, #ffffff);
    --cur-rose: var(--dn-rose, #b24d64);
    --cur-shadow: var(--dn-shadow, 0 24px 60px rgba(36, 22, 30, .16), 0 2px 6px rgba(36, 22, 30, .06));
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

body .aphro-cur .aphro-cur__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 12px 0 14px;
    border: 1px solid var(--cur-line);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--cur-ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

body .aphro-cur .aphro-cur__toggle:hover,
body .aphro-cur .aphro-cur__toggle[aria-expanded="true"] {
    background: var(--cur-hover);
    color: var(--cur-ink);
}

body .aphro-cur .aphro-cur__toggle:focus-visible {
    outline: 2px solid var(--cur-rose);
    outline-offset: 2px;
}

body .aphro-cur .aphro-cur__toggle[aria-busy="true"] {
    cursor: progress;
    opacity: .7;
}

.aphro-cur__chev {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    transition: transform .18s ease;
}

.aphro-cur__toggle[aria-expanded="true"] .aphro-cur__chev {
    transform: rotate(180deg);
}

.aphro-cur__menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: 0;
    width: 264px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--cur-line);
    border-radius: 14px;
    background: var(--cur-panel);
    box-shadow: var(--cur-shadow);
    list-style: none;
}

.aphro-cur__menu[hidden] {
    display: none;
}

.aphro-cur__menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

body .aphro-cur .aphro-cur__opt {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--cur-ink) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .14s ease;
}

body .aphro-cur .aphro-cur__opt:hover,
body .aphro-cur .aphro-cur__opt:focus-visible {
    background: var(--cur-hover);
    outline: 0;
}

body .aphro-cur .aphro-cur__opt:focus-visible {
    box-shadow: inset 0 0 0 2px var(--cur-rose);
}

.aphro-cur__opt-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.aphro-cur__opt-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aphro-cur__opt-sym {
    color: var(--cur-muted);
    font-size: 12.5px;
}

body .aphro-cur .aphro-cur__opt.is-current {
    background: var(--cur-hover);
    font-weight: 600;
}

body .aphro-cur .aphro-cur__opt.is-current .aphro-cur__opt-code {
    color: var(--cur-rose);
}

/* Divider before the "Discreet packaging" note, like the language pill's. */
@media (min-width: 901px) {
    .aphro-desknav__aside .aphro-desknav__lang + .aphro-cur {
        margin-left: -6px;
    }

    .aphro-cur + .aphro-desknav__note::before {
        content: "";
        width: 1px;
        height: 16px;
        margin-right: 6px;
        background: var(--dn-line, rgba(36, 22, 30, .1));
    }
}

/* ---- phone menu -------------------------------------------------------- */
.aphro-mnav__cur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--dn-line, rgba(36, 22, 30, .1));
}

.aphro-mnav__cur .aphro-mnav__lang-label {
    color: var(--dn-ink, #24161e);
    font-size: 14px;
    font-weight: 600;
}

.aphro-cur-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

body .aphro-mnav .aphro-cur-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--dn-line, rgba(36, 22, 30, .1));
    border-radius: 12px;
    background: transparent;
    color: var(--dn-ink, #24161e) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none !important;
    transition: background-color .16s ease, color .16s ease;
}

body .aphro-mnav .aphro-cur-pill .aphro-cur-pill__sym {
    color: var(--dn-muted, #6f6770);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
}

body .aphro-mnav .aphro-cur-pill:focus-visible {
    outline: 2px solid var(--dn-rose, #b24d64);
    outline-offset: 2px;
}

body .aphro-mnav .aphro-cur-pill.is-current {
    border-color: var(--dn-ink, #24161e);
    background: var(--dn-ink, #24161e);
    color: var(--dn-bg, #ffffff) !important;
}

body .aphro-mnav .aphro-cur-pill.is-current .aphro-cur-pill__sym {
    color: var(--dn-bg, #ffffff);
    opacity: .75;
}

/* ---- checkout note ----------------------------------------------------- */
.aphro-cur-note td {
    padding-top: 10px !important;
    padding-bottom: 4px !important;
    border-top: 0 !important;
    text-align: left !important;
}

.aphro-cur-note__text {
    margin: 0 0 8px;
    color: var(--adf-muted, #6f6770);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.aphro-cur-note__change {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--adf-ink, #24161e);
    font-size: 13px;
    font-weight: 600;
}

body .aphro-cur-note__change select {
    width: auto;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 30px 0 10px;
    border: 1px solid var(--adf-line, rgba(36, 22, 30, .12));
    border-radius: 10px;
    background-color: var(--adf-surface, #ffffff);
    color: var(--adf-ink, #24161e);
    font-size: 13px;
    font-weight: 500;
}

body .aphro-cur-note__change select:focus-visible {
    outline: 0;
    box-shadow: var(--adf-ring, 0 0 0 3px rgba(178, 77, 100, .22));
}

.aphro-cur-pills--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---- delivery notice: visitors outside Canada and the US ---------------- */
.aphro-ship-bar {
    display: none;
}

html[data-aphro-region="intl"]:not(.aphro-ship-bar-off) .aphro-ship-bar {
    display: flex;
}

.aphro-ship-bar {
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 8px 52px;
    border-bottom: 1px solid var(--adf-line, rgba(36, 22, 30, .12));
    background: var(--adf-blush, #f8e9e8);
    color: var(--adf-ink, #24161e);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.aphro-ship-bar p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.aphro-ship-bar strong {
    font-weight: 700;
}

body .aphro-ship-bar .aphro-ship-bar__close {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    transform: translateY(-50%);
}

body .aphro-ship-bar .aphro-ship-bar__close:hover {
    background: rgba(36, 22, 30, .08);
}

html.aphro-dark body .aphro-ship-bar .aphro-ship-bar__close:hover {
    background: rgba(255, 255, 255, .1);
}

body .aphro-ship-bar .aphro-ship-bar__close:focus-visible {
    outline: 2px solid var(--adf-rose, #b24d64);
    outline-offset: 1px;
}

.aphro-ship-bar__close svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 600px) {
    .aphro-ship-bar {
        justify-content: flex-start;
        padding: 8px 48px 8px 16px;
        text-align: left;
    }
}

/* ---- US duties: product page line and checkout row ---------------------- */
.aphro-duties-hint,
.aphro-duties-note__text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--adf-muted, #6f6770);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.aphro-duties-hint {
    margin: 12px 0 0;
}

.aphro-duties-note__text {
    margin: 0;
}

.aphro-duties-hint svg,
.aphro-duties-note__text svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--adf-rose-text, #a9475d);
}

.aphro-duties-note td {
    padding-top: 4px !important;
    padding-bottom: 8px !important;
    border-top: 0 !important;
    text-align: left !important;
}

@media (prefers-reduced-motion: reduce) {
    .aphro-cur__chev,
    body .aphro-cur .aphro-cur__toggle,
    body .aphro-cur .aphro-cur__opt,
    body .aphro-mnav .aphro-cur-pill {
        transition: none;
    }
}
