/* Reservaline results V99 - guests/rooms only. */
body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-guest-menu,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-guest-menu {
    box-sizing: border-box !important;
    width: 330px !important;
    max-width: min(330px, calc(100vw - 24px)) !important;
    padding: 8px 16px !important;
    overflow: hidden !important;
}

body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-guest-menu > li,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-guest-menu > li {
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

body.rrr-template #rrr-search-form .rrr-search-field--guest .select-wrapper,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .select-wrapper {
    display: block !important;
    box-sizing: border-box !important;
    width: 122px !important;
    min-width: 122px !important;
    max-width: 122px !important;
    flex: 0 0 122px !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter {
    display: grid !important;
    position: static !important;
    box-sizing: border-box !important;
    width: 122px !important;
    min-width: 122px !important;
    max-width: 122px !important;
    height: 36px !important;
    grid-template-columns: 36px 42px 36px !important;
    grid-template-rows: 36px !important;
    column-gap: 4px !important;
    align-items: center !important;
    justify-content: start !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .rrr-v99-stepper,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .rrr-v99-stepper {
    display: inline-flex !important;
    position: static !important;
    float: none !important;
    box-sizing: border-box !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #cfd7e3 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #172033 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 1 !important;
}

body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .rrr-v99-stepper.prev,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .rrr-v99-stepper.prev {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > input.st-input-number,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > input.st-input-number {
    display: block !important;
    position: static !important;
    float: none !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: #fff !important;
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: center !important;
    text-indent: 0 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 36px !important;
    box-shadow: none !important;
    pointer-events: none !important;
    z-index: 2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .rrr-v99-stepper.next,
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .rrr-v99-stepper.next {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

/* Any counter injected later by older Traveler/Reservaline scripts is not part of V99. */
body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .prev:not(.rrr-v99-stepper),
body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .next:not(.rrr-v99-stepper),
body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > [data-rrr-guest-step],
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .prev:not(.rrr-v99-stepper),
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > .next:not(.rrr-v99-stepper),
body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-v99-counter > [data-rrr-guest-step] {
    display: none !important;
}

@media (max-width: 767.98px) {
    body.rrr-template #rrr-search-form .rrr-search-field--guest .rrr-guest-menu,
    body.rh1-results-template #rrr-search-form .rrr-search-field--guest .rrr-guest-menu {
        width: min(330px, calc(100vw - 32px)) !important;
        max-width: calc(100vw - 32px) !important;
    }
}
