/* NeedGod custom currency selector - SVG flag version */
.ps-currencyselector {
    position: relative;
    display: inline-block;
    font-family: inherit;
    z-index: 1050;
}

/* Keep PrestaShop's real selector in the DOM to preserve its native change handler. */
.ps-currencyselector .js-currency-selector.ngc-native-select {
    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;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ngc-currency-ui {
    position: relative;
    display: inline-block;
}

.ngc-currency-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 14px !important;
    border: 1px solid #dce4ed !important;
    border-radius: 999px !important;
    background: #e8eef6 !important;
    color: #26364a !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 20px !important;
    box-shadow: 0 1px 3px rgba(30, 50, 70, .08);
    cursor: pointer;
    white-space: nowrap;
}

.ngc-currency-trigger:hover,
.ngc-currency-ui.is-open .ngc-currency-trigger {
    background: #dfe8f2 !important;
}

.ngc-currency-trigger:focus-visible,
.ngc-currency-option:focus-visible {
    outline: 2px solid #448ac4;
    outline-offset: 2px;
}

.ngc-flag {
    display: inline-block;
    width: 28px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
    vertical-align: middle;
}

.ngc-currency-code {
    color: #26364a;
    font-size: 14px;
    font-weight: 700;
}

.ngc-currency-chevron {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #26364a;
}

.ngc-currency-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 150px;
    padding: 6px;
    margin: 0;
    list-style: none;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(30, 50, 70, .16);
    z-index: 2000;
}

.ngc-currency-menu[hidden] {
    display: none !important;
}

.ngc-currency-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #26364a;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.ngc-currency-option:hover {
    background: #f1f5f9;
}

.ngc-currency-option.is-current {
    background: #e8eef6;
}

.ngc-currency-option .ngc-flag {
    width: 28px;
    height: 20px;
}

@media (max-width: 767px) {
    .ngc-currency-menu {
        right: 0;
    }
}
