:root {
    --pakherbal-location-primary: #79c943;
    --pakherbal-location-primary-dark: #4d9827;
    --pakherbal-location-ink: #10202d;
    --pakherbal-location-muted: #637282;
    --pakherbal-location-border: #dfe7dd;
    --pakherbal-location-surface: #ffffff;
    --pakherbal-location-soft: #f4f8f2;
    --pakherbal-location-shadow: 0 20px 55px rgba(2, 18, 28, 0.25);
}

.pakherbal-location-selector,
.pakherbal-location-selector * {
    box-sizing: border-box;
}

.pakherbal-location-selector button,
.pakherbal-location-selector input {
    font: inherit;
}

.pakherbal-location-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 154px;
    padding: 7px 9px;
    color: #ffffff;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.pakherbal-location-trigger:hover,
.pakherbal-location-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(121, 201, 67, 0.45);
    outline: none;
}

.pakherbal-location-trigger__icon {
    display: inline-flex;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    color: var(--pakherbal-location-primary);
}

.pakherbal-location-trigger__icon svg,
.pakherbal-location-trigger__chevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pakherbal-location-trigger__text {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    line-height: 1.12;
}

.pakherbal-location-trigger__label {
    color: #cbd7e0;
    font-size: 10.5px;
    font-weight: 500;
}

.pakherbal-location-trigger__value {
    display: block;
    max-width: 172px;
    margin-top: 2px;
    overflow: hidden;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pakherbal-location-trigger__chevron {
    display: inline-flex;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: #cbd7e0;
}

.pakherbal-location-modal[hidden],
.pakherbal-location-dialog__icon-button[hidden],
.pakherbal-location-search[hidden],
.pakherbal-location-empty[hidden],
.pakherbal-location-path[hidden] {
    display: none !important;
}

.pakherbal-location-modal {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
}

.pakherbal-location-modal__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(1, 12, 20, 0.68);
    border: 0;
    cursor: default;
    backdrop-filter: blur(2px);
}

.pakherbal-location-dialog {
    position: relative;
    display: flex;
    width: min(398px, 100%);
    max-height: min(570px, calc(100dvh - 24px));
    overflow: hidden;
    flex-direction: column;
    color: var(--pakherbal-location-ink);
    background: var(--pakherbal-location-surface);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 14px;
    box-shadow: var(--pakherbal-location-shadow);
    animation: pakherbal-location-dialog-in 170ms ease-out both;
}

.pakherbal-location-dialog:focus {
    outline: none;
}

.pakherbal-location-dialog__header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 7px;
    padding: 12px;
    border-bottom: 1px solid var(--pakherbal-location-border);
}

.pakherbal-location-dialog__heading {
    min-width: 0;
}

.pakherbal-location-dialog__eyebrow {
    display: block;
    overflow: hidden;
    color: var(--pakherbal-location-primary-dark);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.pakherbal-location-dialog__title {
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--pakherbal-location-ink);
    font-size: 18px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pakherbal-location-dialog__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #40515f;
    background: #f3f6f2;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    touch-action: manipulation;
}

.pakherbal-location-dialog__icon-button:hover,
.pakherbal-location-dialog__icon-button:focus-visible {
    color: var(--pakherbal-location-primary-dark);
    background: #edf7e8;
    border-color: #cde5c1;
    outline: none;
}

.pakherbal-location-dialog__icon-button svg {
    width: 18px;
    height: 18px;
}

.pakherbal-location-dialog__close {
    grid-column: 3;
}

.pakherbal-location-dialog__body {
    min-height: 0;
    padding: 10px 12px 11px;
}

.pakherbal-location-path {
    margin-bottom: 6px;
    overflow: hidden;
    color: #49733b;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pakherbal-location-dialog__instruction {
    margin: 0 0 8px;
    color: var(--pakherbal-location-muted);
    font-size: 11.5px;
    line-height: 1.4;
}

.pakherbal-location-search {
    display: block;
    margin-bottom: 8px;
}

.pakherbal-location-search__control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #cdd9cc;
    border-radius: 9px;
}

.pakherbal-location-search__control:focus-within {
    border-color: var(--pakherbal-location-primary-dark);
    box-shadow: 0 0 0 3px rgba(121, 201, 67, 0.15);
}

.pakherbal-location-search__control svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: #72808c;
}

.pakherbal-location-search input {
    width: 100%;
    min-height: 36px;
    padding: 0;
    color: var(--pakherbal-location-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.pakherbal-location-options {
    display: grid;
    max-height: 348px;
    gap: 6px;
    padding-right: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.pakherbal-location-option {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 10px;
    color: #243743;
    background: var(--pakherbal-location-soft);
    border: 1px solid #e2eae0;
    border-radius: 9px;
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.pakherbal-location-option:hover,
.pakherbal-location-option:focus-visible {
    color: #1c4f20;
    background: #edf8e8;
    border-color: #a9d491;
    outline: none;
}

.pakherbal-location-option:active {
    background: #e4f3dc;
}

.pakherbal-location-option.is-selected {
    color: #ffffff;
    background: linear-gradient(135deg, #5fae34, #79c943);
    border-color: #5fae34;
}

.pakherbal-location-option__name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13.5px;
    font-weight: 700;
}

.pakherbal-location-option__meta {
    color: #6f7d86;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.pakherbal-location-option.is-selected .pakherbal-location-option__meta {
    color: rgba(255, 255, 255, 0.88);
}

.pakherbal-location-option__arrow {
    width: 16px;
    height: 16px;
    color: #6a7b85;
}

.pakherbal-location-option.is-selected .pakherbal-location-option__arrow {
    color: #ffffff;
}

.pakherbal-location-empty {
    margin: 8px 0 0;
    padding: 12px;
    color: #6a7882;
    background: #f7f9f6;
    border: 1px dashed #cbd7ca;
    border-radius: 9px;
    font-size: 12px;
    text-align: center;
}

.pakherbal-location-help {
    margin: 8px 0 0;
    padding-top: 8px;
    color: #718078;
    border-top: 1px solid #e8eee6;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

.pakherbal-location-noscript {
    margin: 8px 0;
    color: #9b1c1c;
    font-size: 13px;
}

html.pakherbal-location-modal-open,
html.pakherbal-location-modal-open body {
    overflow: hidden;
}

@keyframes pakherbal-location-dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 560px) {
    .pakherbal-location-modal {
        align-items: end;
        padding: 0;
    }

    .pakherbal-location-dialog {
        width: 100%;
        max-height: min(76dvh, 590px);
        border-radius: 15px 15px 0 0;
        animation-name: pakherbal-location-dialog-mobile-in;
    }

    .pakherbal-location-dialog__header {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        padding: 11px 12px;
    }

    .pakherbal-location-dialog__icon-button {
        width: 38px;
        height: 38px;
    }

    .pakherbal-location-dialog__body {
        padding: 9px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .pakherbal-location-dialog__title {
        font-size: 17px;
    }

    .pakherbal-location-options {
        max-height: 48dvh;
        gap: 7px;
    }

    .pakherbal-location-option {
        min-height: 46px;
        padding: 9px 11px;
    }

    .pakherbal-location-option__name {
        font-size: 14px;
    }

    .pakherbal-location-help {
        font-size: 10.5px;
    }
}

@keyframes pakherbal-location-dialog-mobile-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pakherbal-location-dialog,
    .pakherbal-location-trigger,
    .pakherbal-location-option {
        animation: none;
        transition: none;
    }
}
/* PAKHERBAL LOCATION MOBILE REVIEW START */

/* Keep the title in the correct grid column on every screen. */
.pakherbal-location-dialog__heading {
    grid-column: 2;
    grid-row: 1;
}

/* When Back is hidden, allow the title to use the free left column. */
.pakherbal-location-dialog__icon-button[hidden] +
.pakherbal-location-dialog__heading {
    grid-column: 1 / 3;
}

.pakherbal-location-dialog__close {
    grid-column: 3;
    grid-row: 1;
}

/* The list scrolls; the dialog itself stays inside the viewport. */
.pakherbal-location-dialog__body {
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
}

.pakherbal-location-options {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.pakherbal-location-options::-webkit-scrollbar {
    width: 5px;
}

.pakherbal-location-options::-webkit-scrollbar-track {
    background: transparent;
}

.pakherbal-location-options::-webkit-scrollbar-thumb {
    background: #c5d2c2;
    border-radius: 999px;
}

@media (max-width: 560px) {
    /* A compact centred card is clearer than a full-width sheet. */
    .pakherbal-location-modal {
        display: grid;
        align-items: center;
        justify-items: center;
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .pakherbal-location-dialog {
        width: min(360px, 100%);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 14px;
        animation-name: pakherbal-location-dialog-in;
    }

    .pakherbal-location-dialog__header {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 6px;
        padding: 9px 10px;
    }

    .pakherbal-location-dialog__icon-button {
        width: 36px;
        height: 36px;
    }

    .pakherbal-location-dialog__body {
        padding: 8px 10px 9px;
    }

    .pakherbal-location-dialog__eyebrow {
        font-size: 9px;
    }

    .pakherbal-location-dialog__title {
        margin-top: 1px;
        font-size: 16.5px;
        line-height: 1.18;
    }

    .pakherbal-location-path {
        margin-bottom: 4px;
        font-size: 10.5px;
    }

    .pakherbal-location-dialog__instruction {
        margin-bottom: 7px;
        font-size: 11px;
        line-height: 1.32;
    }

    .pakherbal-location-search {
        margin-bottom: 7px;
    }

    .pakherbal-location-search__control {
        min-height: 36px;
        border-radius: 8px;
    }

    .pakherbal-location-search input {
        min-height: 34px;
        font-size: 13px;
    }

    .pakherbal-location-options {
        max-height: min(46vh, 310px);
        max-height: min(46dvh, 310px);
        gap: 6px;
        padding-right: 1px;
    }

    .pakherbal-location-option {
        min-height: 44px;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .pakherbal-location-option__name {
        font-size: 13.5px;
    }

    .pakherbal-location-option__meta {
        font-size: 9.5px;
    }

    .pakherbal-location-help {
        margin-top: 7px;
        padding-top: 7px;
        font-size: 9.5px;
        line-height: 1.25;
    }

    .pakherbal-location-options::-webkit-scrollbar {
        width: 3px;
    }
}

/* Extra-small phones. */
@media (max-width: 380px) {
    .pakherbal-location-modal {
        padding: 8px;
        padding-top: max(8px, env(safe-area-inset-top));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .pakherbal-location-dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 12px;
    }

    .pakherbal-location-dialog__header {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        padding: 8px 9px;
    }

    .pakherbal-location-dialog__icon-button {
        width: 34px;
        height: 34px;
    }

    .pakherbal-location-dialog__body {
        padding: 7px 9px 8px;
    }

    .pakherbal-location-dialog__title {
        font-size: 16px;
    }

    .pakherbal-location-options {
        max-height: min(45vh, 286px);
        max-height: min(45dvh, 286px);
    }

    .pakherbal-location-option {
        min-height: 43px;
        padding: 7px 9px;
    }
}

/* Short mobile screens and landscape mode. */
@media (max-width: 560px) and (max-height: 620px) {
    .pakherbal-location-dialog__header {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .pakherbal-location-dialog__body {
        padding-top: 6px;
        padding-bottom: 7px;
    }

    .pakherbal-location-options {
        max-height: min(38vh, 220px);
        max-height: min(38dvh, 220px);
    }

    .pakherbal-location-help {
        margin-top: 5px;
        padding-top: 5px;
    }
}

/* PAKHERBAL LOCATION MOBILE REVIEW END */