.vds-onrent-popup {
    width: min(880px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    margin: auto;
    border: 1px solid #dce5ed;
    border-radius: 4px;
    background: #fff;
    color: #092b56;
    box-shadow: 0 24px 80px rgb(9 43 86 / 24%);
    font-family: var(--vds-font-family, Inter, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}
.vds-onrent-popup[open] { display: flex; flex-direction: column; }
.vds-onrent-popup, .vds-onrent-popup * { box-sizing: border-box; }
.vds-onrent-popup::backdrop { background: rgb(5 22 44 / 65%); }
.vds-onrent-popup__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 26px 32px; border-bottom: 1px solid #dce5ed; background: #f4f8fa; }
.vds-onrent-popup__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #65768a; font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.vds-onrent-popup__eyebrow::before { content: ''; width: 28px; height: 2px; background: #ff3f58; }
.vds-onrent-popup__header h2 { margin: 0; color: #092b56; font: inherit; font-size: clamp(22px, 3vw, 32px); font-weight: 300; line-height: 1.15; letter-spacing: -.04em; }
.vds-onrent-popup__close { position: relative; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid #cbd6e0; border-radius: 0; background: #fff; color: #092b56; cursor: pointer; }
.vds-onrent-popup__close::before, .vds-onrent-popup__close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.vds-onrent-popup__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.vds-onrent-popup__close:hover { background: #092b56; color: #fff; }
.vds-onrent-popup__content { min-height: 120px; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 30px 32px; scrollbar-width: thin; scrollbar-color: #aab8c6 #f3f6f8; }
.vds-onrent-popup .onrent-booking { width: 100%; max-width: none; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; color: inherit; font: inherit; }
.vds-onrent-popup .onrent-booking > h2 { margin: 0 0 24px; color: #092b56; font: inherit; font-size: 25px; font-weight: 300; letter-spacing: -.04em; line-height: 1.15; }
.vds-onrent-popup .onrent-booking__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vds-onrent-popup .onrent-booking__grid > label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 12px; }
.vds-onrent-popup .onrent-booking input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .vds-onrent-popup .onrent-booking select { width: 100%; min-width: 0; min-height: 46px; padding: 12px; margin: 0; border: 1px solid #cbd6e0; border-radius: 0; background: #fff; color: #092b56; font: inherit; font-size: 14px; }
.vds-onrent-popup .onrent-booking small { color: #65768a; font-size: 11px; }
.vds-onrent-popup .onrent-branch-picker { grid-column: 1 / -1; min-width: 0; padding: 0; margin: 0; border: 0; }
.vds-onrent-popup .onrent-branch-picker legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.vds-onrent-popup .onrent-branch-picker > p { margin: 0 0 12px; color: #65768a; font-size: 12px; }
.vds-onrent-popup .onrent-branch-picker > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.vds-onrent-popup .onrent-branch-picker label { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid #cbd6e0; border-radius: 0; background: #fff; cursor: pointer; }
.vds-onrent-popup .onrent-branch-picker label:has(input:checked) { border-color: #092b56; background: #edf3f7; }
.vds-onrent-popup .onrent-branch-picker input[type="radio"] { position: static; width: 16px; height: 16px; flex: 0 0 16px; opacity: 1; accent-color: #092b56; }
.vds-onrent-popup .onrent-branch-picker label > span, .vds-onrent-popup .onrent-branch-picker label > i { display: none; }
.vds-onrent-popup .onrent-branch-picker strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.vds-onrent-popup .onrent-booking__terms { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 14px; color: #52677f; font-size: 12px; }
.vds-onrent-popup input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #092b56; }
.vds-onrent-popup .onrent-booking__hint { margin: 0 0 22px; color: #65768a; font-size: 12px; line-height: 1.6; }
.vds-onrent-popup .onrent-booking__submit, .vds-onrent-popup__retry { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 14px 24px; border: 0; border-radius: 0; background: #ff3f58; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.vds-onrent-popup .onrent-booking__submit:hover, .vds-onrent-popup__retry:hover { background: #d9233d; }
.vds-onrent-popup__notice { margin: 0 0 20px; color: #52677f; }
.vds-onrent-popup__fallback { display: block; margin-top: 18px; color: #092b56; text-decoration: underline; text-underline-offset: 4px; }
.vds-onrent-popup .onrent-booking__notice { padding: 16px; margin: 0 0 20px; border: 1px solid #dce5ed; background: #f4f8fa; font-size: 13px; }
.vds-onrent-popup .onrent-booking__notice.is-error { background: #fff2f4; color: #9b243c; }
.vds-onrent-popup :is(input, select, button, a):focus-visible { outline: 2px solid #092b56; outline-offset: 3px; }
@media (max-width: 600px) {
    .vds-onrent-popup { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
    .vds-onrent-popup__header { padding: 20px; gap: 12px; }
    .vds-onrent-popup__content { padding: 22px 20px; }
    .vds-onrent-popup .onrent-booking__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .vds-onrent-popup .onrent-booking__submit { width: 100%; }
}

/* Wspólny widok wyboru lokalizacji — JS zachowuje oryginalne pole select. */

.vds-onrent-popup .vds-popup-size-select__native {
    position: absolute !important;
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.vds-popup-size-select { position: relative; width: 100%; min-width: 0; }
.vds-onrent-popup .vds-popup-size-select__button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px;
    margin: 0;
    border: 1px solid #cbd6e0;
    border-radius: 0;
    background: #fff;
    color: #092b56;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
}
.vds-onrent-popup .vds-popup-size-select__button::before,
.vds-onrent-popup .vds-popup-size-select__button::after { content: none; }
.vds-onrent-popup .vds-popup-size-select__button:hover { background: #f8fbfd; color: #092b56; border-color: #8da3b7; }
.vds-onrent-popup .vds-popup-size-select__button:focus-visible { outline: 2px solid #092b56; outline-offset: 2px; }
.vds-onrent-popup .vds-popup-size-select__button:disabled { opacity: .5; cursor: not-allowed; }
.vds-popup-size-select__value { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.vds-popup-size-select__arrow { display: block; flex: 0 0 7px; width: 7px; height: 7px; margin: -4px 2px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.vds-popup-size-select.is-open .vds-popup-size-select__arrow { margin-top: 4px; transform: rotate(225deg); }
.vds-popup-size-select__list {
    position: fixed;
    z-index: 100000;
    box-sizing: border-box;
    padding: .3rem;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #cbd6e0;
    border-radius: 0;
    background: #fff;
    color: #092b56;
    box-shadow: 0 1rem 2.5rem rgba(9, 43, 86, .14);
    font-family: var(--vds-font-family, Inter, Arial, sans-serif);
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.35;
    scrollbar-width: thin;
    scrollbar-color: #aab8c6 #f3f6f8;
}
.vds-popup-size-select__list[hidden] { display: none !important; }
.vds-popup-size-select__option {
    position: relative;
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 2.65rem;
    padding: .65rem .75rem;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #edf1f4;
    border-radius: 0;
    background: #fff;
    color: #17395f;
    font: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.vds-popup-size-select__option:last-child { border-bottom: 0; }
.vds-popup-size-select__option:hover,
.vds-popup-size-select__option.is-active { background: #f3f6f8; color: #092b56; }
.vds-popup-size-select__option[aria-selected="true"] { padding-left: 1rem; background: #edf3f7; color: #092b56; font-weight: 700; }
.vds-popup-size-select__option[aria-selected="true"]::before { content: ""; position: absolute; top: .45rem; bottom: .45rem; left: .25rem; width: 2px; background: #ff3f58; }
