/* Currency controls shared by every storefront header. */
.header-currency-item {
    display: flex;
    align-items: center;
}

.iphones-header-currency {
    position: relative;
    display: inline-flex;
}

.iphones-header-currency::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #ffffff;
    border-bottom: 1.5px solid #ffffff;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.iphones-header-currency.is-enhanced::after {
    display: none;
}

.iphones-header-currency select {
    width: 74px;
    height: 40px;
    padding: 0 28px 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: #171717;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    appearance: none;
    cursor: pointer;
}

.iphones-header-currency select:hover,
.iphones-header-currency select:focus-visible {
    border-color: #74cf68;
    outline: none;
    box-shadow: 0 0 0 2px rgba(116, 207, 104, 0.2);
}

.iphones-header-currency .iphones-builder-dropdown--cart-currency {
    width: 74px;
}

.iphones-header-currency .iphones-builder-dropdown--cart-currency .iphones-builder-dropdown-trigger {
    width: 74px;
    min-height: 40px;
    padding: 0 27px 0 13px;
    border-color: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background-color: #171717;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='M2 2.25L9 9.25L16 2.25' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 10px center;
    background-size: 11px 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.iphones-header-currency .iphones-builder-dropdown--cart-currency .iphones-builder-dropdown-trigger:hover,
.iphones-header-currency .iphones-builder-dropdown--cart-currency.is-open .iphones-builder-dropdown-trigger,
.iphones-header-currency .iphones-builder-dropdown--cart-currency .iphones-builder-dropdown-trigger:focus-visible {
    border-color: #74cf68;
    box-shadow: 0 0 0 2px rgba(116, 207, 104, 0.2);
}

.iphones-header-currency .iphones-builder-dropdown--cart-currency .iphones-builder-dropdown-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 96px;
    max-height: none;
    padding: 6px;
    border-radius: 11px;
    transform-origin: top right;
}

.iphones-header-currency .iphones-builder-dropdown--cart-currency .iphones-builder-dropdown-option {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}


/* Shared currency menu on every storefront page. */
.iphones-header-currency > .sr-only,
.iphones-cart-currency > .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.store-currency-dropdown { position: relative; display: inline-flex; width: 78px; vertical-align: middle; }
.store-currency-dropdown .store-currency-trigger {
    display: inline-flex; align-items: center; width: 100%; height: 36px;
    padding: 0 28px 0 12px; border: 1px solid #dedee3; border-radius: 9px;
    background: #fff; color: #202024; font: inherit; font-size: 12px; font-weight: 700;
    cursor: pointer; position: relative;
}
.store-currency-trigger::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.iphones-header-currency .store-currency-dropdown { width: 74px; }
.iphones-header-currency .store-currency-trigger { height: 40px; border-color: rgba(255,255,255,.35); border-radius: 999px; background: #171717; color: #fff; }
.iphones-header-currency .store-currency-trigger:hover,
.iphones-header-currency .store-currency-trigger[aria-expanded="true"] { border-color: #74cf68; box-shadow: 0 0 0 2px rgba(116,207,104,.2); }
.store-currency-dropdown .store-currency-menu {
    position: absolute; display: flex; flex-direction: column; top: calc(100% + 8px); right: 0;
    z-index: 1100; width: 96px; padding: 6px; border: 1px solid #d9dce3; border-radius: 11px;
    background: #fff; box-shadow: 0 22px 44px rgba(15,23,42,.16); color: #111;
}
.store-currency-dropdown .store-currency-menu[hidden] { display: none; }
.store-currency-dropdown .store-currency-option {
    display: block; width: 100%; min-height: 36px; padding: 8px 10px;
    border: 0; border-radius: 7px; background: transparent; color: #111;
    font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer;
}
.store-currency-dropdown .store-currency-option[aria-selected="true"],
.store-currency-dropdown .store-currency-option:hover,
.store-currency-dropdown .store-currency-option:focus-visible { background: #edf4ff; color: #0071e3; outline: none; }
.store-currency-dropdown .store-currency-trigger:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }
.store-currency-dropdown .store-currency-trigger:disabled { opacity: .5; cursor: default; }

nav .desktop-nav .right > .header-currency-item {
    display:flex;
    align-items:center;
    align-self:center;
    line-height:1;
}
.header-currency-item .iphones-header-currency {
    display:inline-flex;
    align-items:center;
    margin:0;
    padding:0;
    height:40px;
    vertical-align:middle;
}
.iphones-header-currency .store-currency-dropdown { height:40px; }
.iphones-header-currency .store-currency-trigger { justify-content:flex-start; margin:0; line-height:normal; }
.iphones-header-currency select[hidden] { display:none !important; }
.iphones-header-currency .store-currency-menu { text-transform:none; letter-spacing:normal; }
