.ubn-phone-registration {
    width: min(100%, 460px);
    margin: 0 auto;
}
.ubn-phone-registration .auth, .ubn-client-chat-flat {
    border: 0;
    box-shadow: none;
    background: transparent;
}
.ubn-owner-dialog, .ubn-location-picker {
    width: min(680px, calc(100% - 24px));
    max-height: 88dvh;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    padding: 22px;
    background: #fff;
    color: #12233c;
}
.ubn-location-picker { width: min(460px, calc(100% - 24px)); }
.ubn-owner-dialog::backdrop, .ubn-location-picker::backdrop { background: #12233c80; }
.ubn-owner-dialog [hidden] { display: none !important; }
.ubn-owner-dialog [data-owner-close], .ubn-location-picker [data-close] {
    float: right;
    min-width: 44px;
    min-height: 44px;
    font-size: 24px;
}
.ubn-owner-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ubn-owner-choices [aria-pressed=true] { color: white; background: #1665d8; }
.ubn-location-field { display: flex; align-items: stretch; gap: 6px; }
.ubn-location-field input { flex: 1; min-width: 0; }
.ubn-location-loupe { flex: 0 0 44px; padding: 0; font-size: 26px; }
.ubn-location-picker [data-options] { display: grid; gap: 4px; max-height: 56dvh; overflow: auto; }
.ubn-location-picker [data-options] button { text-align: left; min-height: 44px; padding: 6px 12px; }

@media (max-width: 640px) {
    .client-filters #catalog-filter-options label:has(.ubn-location-field),
    [data-owner-form] label:has(.ubn-location-field) {
        grid-column: 1 / -1;
        width: 100%;
    }
    .ubn-location-field { position: relative; width: 100%; display: block; }
    .ubn-location-field input {
        width: 100% !important;
        min-height: 48px;
        padding-right: 48px !important;
        cursor: pointer;
    }
    .ubn-location-field input::-webkit-calendar-picker-indicator { display: none !important; }
    .ubn-location-loupe {
        position: absolute;
        inset: 0 7px 0 auto;
        width: 38px;
        border: 0;
        background: transparent;
        color: #a94900;
    }
    .ubn-location-picker {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        max-height: 82dvh;
        margin: 0;
        padding: 16px 16px max(16px, env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
    }
    .ubn-location-picker input { font-size: 16px; }
}
