.azur-currency-switcher {
    --azur-currency-control-bg: transparent;
    --azur-currency-control-border: rgba(148, 163, 184, 0.45);
    --azur-currency-focus: currentColor;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    color: inherit;
}

.azur-currency-switcher__label,
.azur-currency-switcher__current,
.azur-currency-switcher__select,
.azur-currency-switcher__item,
.azur-currency-switcher__submit {
    box-sizing: border-box;
    color: inherit;
    font: inherit;
    line-height: 1.2;
}

.azur-currency-switcher__label {
    display: inline-flex;
    align-items: center;
    opacity: 0.72;
    white-space: nowrap;
}

.azur-currency-switcher__current {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--azur-currency-control-border);
    border-radius: 4px;
    background: var(--azur-currency-control-bg);
    white-space: nowrap;
}

.azur-currency-switcher__form {
    display: inline-flex;
    align-items: stretch;
    gap: 6px;
    max-width: 100%;
    margin: 0;
}

.azur-currency-switcher__select-wrap {
    position: relative;
    display: inline-flex;
    width: auto;
    min-width: 96px;
    max-width: 100%;
}

.azur-currency-switcher__select-wrap::after {
    position: absolute;
    top: 50%;
    inset-inline-end: 12px;
    width: 7px;
    height: 7px;
    border-inline-end: 1.5px solid currentColor;
    border-block-end: 1.5px solid currentColor;
    content: "";
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
    opacity: 0.7;
}

.azur-currency-switcher__select {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 34px 8px 12px;
    border: 1px solid var(--azur-currency-control-border);
    border-radius: 4px;
    background: var(--azur-currency-control-bg);
    appearance: none;
    cursor: pointer;
}

[dir="rtl"] .azur-currency-switcher__select {
    padding-right: 12px;
    padding-left: 34px;
}

.azur-currency-switcher__select:disabled {
    cursor: default;
    opacity: 0.82;
}

.azur-currency-switcher__submit,
.azur-currency-switcher__item {
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--azur-currency-control-border);
    border-radius: 4px;
    background: var(--azur-currency-control-bg);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.azur-currency-switcher__submit:hover,
.azur-currency-switcher__item:hover {
    filter: brightness(0.97);
}

.azur-currency-switcher__items {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.azur-currency-switcher__item-form {
    display: inline-flex;
    margin: 0;
}

.azur-currency-switcher--inline .azur-currency-switcher__item {
    min-height: auto;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.azur-currency-switcher--inline .azur-currency-switcher__item-form:not(:last-child)::after {
    align-self: center;
    margin-inline-start: 6px;
    content: "/";
    opacity: 0.42;
}

.azur-currency-switcher__item.is-current {
    font-weight: 700;
}

.azur-currency-switcher__item:disabled,
.azur-currency-switcher--preview .azur-currency-switcher__select {
    pointer-events: none;
}

.azur-currency-switcher__select:focus-visible,
.azur-currency-switcher__submit:focus-visible,
.azur-currency-switcher__item:focus-visible {
    outline: 2px solid var(--azur-currency-focus);
    outline-offset: 2px;
}

.azur-currency-switcher.is-enhanced .azur-currency-switcher__submit {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.azur-currency-switcher.is-submitting {
    opacity: 0.68;
    pointer-events: none;
}

.azur-currency-switcher__editor-note {
    margin: 8px 0 0;
    padding: 8px 10px;
    border: 1px dashed currentColor;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.72;
}

@media (max-width: 767px) {
    .azur-currency-switcher,
    .azur-currency-switcher__form,
    .azur-currency-switcher__items {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .azur-currency-switcher,
    .azur-currency-switcher * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
