.px-global-password-policy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 12px;
    margin-top: 8px;
}

.px-global-password-policy span {
    position: relative;
    padding-inline-start: 17px;
    color: #7b768b;
    font-size: 11px;
    line-height: 1.35;
}

.px-global-password-policy span::before {
    position: absolute;
    inset-inline-start: 0;
    color: #aaa4b8;
    content: "○";
}

.px-global-password-policy span.is-valid {
    color: #18794e;
}

.px-global-password-policy span.is-valid::before {
    color: #16a36a;
    font-weight: 800;
    content: "✓";
}

/* Shared country picker: real local SVG flags, independent of OS emoji fonts. */
.px-country-picker {
    position: relative;
    z-index: 20;
    min-width: 0;
    font-family: inherit;
}

.px-country-picker.is-open {
    z-index: 99999;
}

.px-country-picker__trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #272233 !important;
    font: inherit !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
}

.px-country-picker__trigger:focus-visible {
    outline: 2px solid rgba(100, 45, 255, 0.38) !important;
    outline-offset: -3px !important;
}

.px-country-flag,
.px-country-flag-fallback {
    display: block;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
}

.px-country-flag {
    overflow: visible;
}

.px-country-flag-fallback {
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #f0ecfa;
    color: #5f5272;
    font-size: 8px;
    font-weight: 900;
}

.px-country-picker__arrow {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.62;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.16s ease;
}

.px-country-picker.is-open .px-country-picker__arrow {
    transform: rotate(225deg) translate(-1px, -1px);
}

.px-country-picker__panel {
    position: absolute;
    top: calc(100% + 7px);
    inset-inline-start: 0;
    width: min(296px, calc(100vw - 28px));
    padding: 8px;
    overflow: hidden;
    border: 1px solid #ddd7e8;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(40, 25, 66, 0.18);
}

.px-country-picker.opens-up .px-country-picker__panel {
    top: auto;
    bottom: calc(100% + 7px);
}

.px-country-picker__panel[hidden] {
    display: none !important;
}

.px-country-picker__search {
    display: block !important;
    margin: 0 0 7px !important;
}

.px-country-picker__search input[type="search"] {
    display: block !important;
    width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 1px solid #e1dce9 !important;
    border-radius: 9px !important;
    outline: 0 !important;
    background: #faf9fc !important;
    color: #25202e !important;
    font-family: inherit !important;
    font-size: 12px !important;
    box-shadow: none !important;
    appearance: none;
}

.px-country-picker__search input[type="search"]:focus {
    border-color: #7449f8 !important;
    box-shadow: 0 0 0 3px rgba(100, 45, 255, 0.08) !important;
}

.px-country-picker__list {
    max-height: 252px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c9c1d9 transparent;
}

.px-country-picker__option {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    border: 0 !important;
    border-radius: 8px !important;
    outline: 0 !important;
    background: transparent !important;
    color: #302a3a !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    text-align: start !important;
    box-shadow: none !important;
    cursor: pointer;
}

.px-country-picker__option:hover,
.px-country-picker__option:focus,
.px-country-picker__option[aria-selected="true"] {
    background: #f3efff !important;
    color: #5e2ee8 !important;
}

.px-country-picker__option .px-country-flag,
.px-country-picker__option .px-country-flag-fallback {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
}

.px-country-picker__empty {
    margin: 0;
    padding: 18px 10px;
    color: #817a8c;
    font-size: 12px;
    text-align: center;
}

/* Compact picker embedded inside every telephone/WhatsApp field. */
.px-global-phone-control {
    position: relative;
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0;
    min-height: var(--px-phone-height, 44px);
    overflow: visible !important;
    border: 1px solid var(--px-phone-border, #d8d3e3) !important;
    border-radius: var(--px-phone-radius, 10px) !important;
    background: var(--px-phone-bg, #fff) !important;
    direction: ltr;
    box-shadow: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.px-global-phone-control:focus-within {
    border-color: #6c48ff !important;
    box-shadow: 0 0 0 3px rgba(108, 72, 255, 0.10) !important;
}

.px-global-phone-control > .px-country-picker--phone {
    display: flex;
    flex: 0 0 55px;
    width: 55px;
}

.px-country-picker--phone .px-country-picker__trigger {
    width: 55px !important;
    height: 100% !important;
    min-height: calc(var(--px-phone-height, 44px) - 2px) !important;
    padding: 0 8px !important;
    border-inline-end: 1px solid #e3deeb !important;
    border-radius: var(--px-phone-radius, 10px) 0 0 var(--px-phone-radius, 10px) !important;
}

html .px-global-phone-control > input[type="tel"] {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: var(--px-phone-height, 44px) !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 var(--px-phone-radius, 10px) var(--px-phone-radius, 10px) 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: inherit;
    direction: ltr;
    text-align: left;
    box-shadow: none !important;
}

html .px-global-phone-control > input[type="tel"]:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.has-error .px-global-phone-control,
.is-error .px-global-phone-control {
    border-color: #df5667 !important;
}

/* Discreet account default; it no longer occupies a full dashboard card. */
.px-global-account-country {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: auto;
    max-width: min(100%, 590px);
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid #e5e0ed;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
    color: #282132;
    box-shadow: none;
}

.px-global-account-country__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: #f1edff;
    color: #6840ef;
}

.px-global-account-country__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.px-global-account-country__copy {
    min-width: 150px;
}

.px-global-account-country h3,
.px-global-account-country p {
    margin: 0;
}

.px-global-account-country h3 {
    color: #2b2435;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.px-global-account-country p {
    margin-top: 2px;
    color: #7c7586;
    font-size: 10px;
    line-height: 1.35;
}

.px-global-account-country form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.px-country-picker--full .px-country-picker__trigger {
    justify-content: flex-start !important;
    width: min(205px, 38vw) !important;
    height: 39px !important;
    padding: 0 10px !important;
    border: 1px solid #ded8e8 !important;
    border-radius: 10px !important;
    background: #fff !important;
}

.px-country-picker--full .px-country-picker__value {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-global-country-save {
    height: 39px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #6840ef !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.px-global-account-country form.is-enhanced .px-global-country-save {
    display: none !important;
}

.px-global-account-country output {
    max-width: 145px;
    color: #18794e;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.3;
}

.px-global-account-country output:empty {
    display: none;
}

@media (max-width: 720px) {
    .px-global-password-policy {
        grid-template-columns: 1fr;
    }

    .px-global-account-country {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        width: 100%;
        max-width: none;
    }

    .px-global-account-country form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .px-global-account-country .px-country-picker--full,
    .px-global-account-country .px-country-picker--full .px-country-picker__trigger {
        width: 100% !important;
    }

    .px-global-account-country .px-country-picker--full {
        flex: 1 1 auto;
    }

    .px-country-picker__panel {
        width: min(296px, calc(100vw - 24px));
    }
}
