@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-Regular.ttf') format('truetype');
}

:root {
    scroll-behavior: smooth;
}

.login-phone-border input.form-control,
.login-phone-border textarea.form-control {
  border-color: transparent !important;
  border-bottom-color: #000 !important; /* Setting the bottom border color to black */
  border-top-width: 0 !important; /* Removing top border */
  border-left-width: 0 !important; /* Removing left border */
  border-right-width: 0 !important; /* Removing right border */
  border-radius: 0 !important; /* Optional: Removing any border radius */
  box-shadow: none !important; /* Optional: Removing any box-shadow */
  width:100% !important;
  font-size: 5vw;
  text-align: center;

}

.flask-flash-message {
  font-size: 5vw;
  text-align: center;
  margin-bottom: 20px; /* Adjust the margin bottom as needed */
}

.login-phone-request-button {
  font-size: 5vw;
}

.above_others {
  z-index: 1000;
}

.initially-hidden {
  display: none;
}

html, body {
  background-color: white;  /* Ensures the background is always white */
  color: black;            /* Ensures the text is always black */
  margin: 0;               /* Removes default margin */
  padding: 0;              /* Removes default padding */
  height: 100%;            /* Ensures full height of the viewport */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-text-size-adjust: 100%;
}

/* touch-action:none / user-select:none / overflow-x:hidden used to sit on
   html,body above, which silently disabled native scrolling (touch and
   horizontal) on every page (PR #809, issue #811). The default is now that
   every page scrolls and selects natively; the fixed-layout pages that want a
   locked, non-scrolling surface (mobile_app_v2, mobile_onboarding) opt in per
   page via the no_touch_lock head_html_override in hmi_pages_standard.yaml,
   which injects exactly those declarations on html,body there. */

body {
    font-family: 'Rubik', Arial, sans-serif;
    /* font-family: Arial, Helvetica, sans-serif; */
    color: #000000;
}

a {
    color: #4154f1;
    text-decoration: none;
}

a:hover {
    color: #717ff5;
    text-decoration: none;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
    transition: all 0.5s;
    z-index: 997;
    padding: 10px;
}
.nav-up {
    top: -100px;
}
.header.header-scrolled {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}
.header .logo {
    line-height: 0;
}
.header .logo img {
    max-height: 40px;
    margin-right: 6px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation
*/
.navbar {
    padding: 0;
}
.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}
.navbar li {
    position: relative;
}
.navbar a,
.navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 30px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #013289;
    white-space: nowrap;
    transition: 0.3s;
}
.navbar a i,
.navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
    color: #4154f1;
}
.navbar .getstarted,
.navbar .getstarted:focus {
    background: #4154f1;
    padding: 8px 20px;
    margin-left: 30px;
    border-radius: 4px;
    color: #fff;
}
.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
    color: #fff;
    background: #5969f3;
}
.navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 14px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 10px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    transition: 0.3s;
    border-radius: 4px;
}
.navbar .dropdown ul li {
    min-width: 200px;
}
.navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    font-weight: 600;
}
.navbar .dropdown ul a i {
    font-size: 12px;
}
.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a {
    color: #4154f1;
}
.navbar .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}
.navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
}
.navbar .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
}

/*--------------------------------------------------------------
# main-section Section
--------------------------------------------------------------*/
.main-section {
    height: 100vh;
    /* background-color: #ffd200;  */
    background-color: #ffffff;
    /* background-size: cover; */
}

.main-section h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    color: #012970;
}
.main-section h2 {
    color: #444444;
    margin: 15px 0 0 0;
    font-size: 26px;
}

.central-home-message {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.central-home-message .title,
.central-home-message .subtitle {
    width: 100%;
}

.central-home-message .title {
    margin: 0;
}

.central-home-message .subtitle {
    margin: 15px 0 0;
}

.central-home-message .img-fluid {
    margin-top: 24px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background: #f6f9ff;
    padding: 10px 0 10px 0;
    font-size: 16px;
    bottom: 0;
    width: 100%;
    height: 40px;
}
@media (max-width: 992px) {
    .footer .footer-top {
        background-position: center bottom;
    }
}
.footer .copyright {
    text-align: center;
    padding-top: 30px;
    color: #012970;
}

/* Platform page specific CSS */

.data-display-value {
    display: inline;
    color: black;
}
.iscan-text-align-center {
    text-align: center;
}
.iscan-text-align-right {
  text-align: right;
}
.iscan-border-full {
    border: 1px solid black;
}
.iscan-border-round {
    border-left: 1px solid black;
    border-radius: 8px;
}
.iscan-title-border {
    cursor: pointer;
    border: 0px outset;
    border-radius: 25px;
}
.iscan-border-left-corner {
    border-left: 1px solid black;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
.iscan-border-right-corner {
    border-left: 1px solid black;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
.iscan-border-mid {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}
.iscan-border-title {
    border-bottom: 4px solid #3934ba;
}
.fps-border-title {
  border-bottom: 4px solid #FDD237;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-show {
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.modal-body {
    position: absolute;
}

select {
    -webkit-appearance: listbox !important;
}

.error {
    color: red;
}

.footer-reconnect {
    color: white;
    background: blue;
}

.footer-error {
    color: white;
    background: red;
}

.pointer {
  cursor: pointer;
}

.card-body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none; /* Removes any shadow effects */
}

:root {
  --mobile-width: 33vw; /* Default width */
  --upper-text-width: 50vw;
  --iscan-position-parametric: 0%; /* Default width */
  --iscan-position-parametric_offset_x: 50%;
  --iscan-position-parametric_offset_x_right_bound:-50%;
  --slider_height: 5vh; /* Default width */
  --bottom_height: 10vh;
  --bottom_height_middle: calc(var(--bottom_height)/2);
  /* Vertical centre of the bottom nav bar, used to place the tab icons.
     The bar itself is anchored bottom:0 with height var(--app_v2_bottom_margin)
     (safe-area aware), so the icons must be placed against the same reference.
     Using 100vh here made the icons drift below the bar on iOS Safari, whose
     100vh is the *large* viewport (behind the toolbar / home indicator) while
     the bar sits in the layout viewport - so the icons hung into the home
     indicator (issue #688). Use 100% (layout viewport, same as the bar) and
     half the bar height so the icons stay centred in the bar on iOS too. */
  --from_top_bottom_height_middle: calc(100% - var(--app_v2_bottom_margin) / 2);
  --mobile-height: 32vh;
  --app_v2_orange_limit: 60%;
  --app_v2_left_margin: 4%;
  --app_v2_center: calc(100% - 2 * var(--app_v2_left_margin));
  --app_v2_pull_up_position: 48%;
  --app_v2_pull_up_position_corner_margin: calc(var(--app_v2_pull_up_position)/2);
  --app_v2_top_margin: max(10%, env(safe-area-inset-top, 0px));
  --app_v2_bottom_margin: max(10%, env(safe-area-inset-bottom, 0px));
  --app_v2_body_content: calc(100% - var(--app_v2_top_margin));
  --app_v2_lower_button: 40%;
  --app_v2_pull_up_main_icon_position_left: 10%;
  --app_v2_pull_up_sub_icon_position_left: 20%;
  --app_v2_pull_up_sub_icon_position_mid: 40%;
  /* Right bound for the model/name column so it never runs under the
     license column, which starts at the _mid position (100% - 40%). */
  --app_v2_pull_up_sub_text_mid_right: 60%;
  --app_v2_pull_up_sub_icon_position_right_inner: 18%;
  --app_v2_pull_up_sub_icon_position_right: 8%;
  --app_v2_charging_toggle_right: 18%;
  --app_v2_pull_up_main_icon_position_top: 55%;
  --app_v2_pull_up_main_icon_position_square_dimension: 8vh;
  --app_v2_pull_up_title_left_position: 30%;
  --app_v2_initials_font_size: 5vh;
  --app_v2_pull_up_title_font_size: 4vh;
  --app_v2_general_text_font_size: 3vh;
  --app_v2_pull_up_sub_icon_position_square_dimension: 4vh;
  --app_v2_extra_combo_height: 4vh;
  --app_v2_final_combo_height: calc(var(--app_v2_pull_up_sub_icon_position_square_dimension)+var(--app_v2_extra_combo_height));
  --app_v2_final_combo_top_position:  calc(var(--app_v2_pull_up_main_icon_position_line1)-var(--app_v2_extra_combo_height)/2);
  --app_v2_pull_up_main_icon_position_line1: 68%;
  --app_v2_pull_up_main_icon_position_line2: 75%;
  --app_v2_pull_up_main_icon_position_line3: 82%;
  --app_v2_debug_profile: 1.5vh;
  --app_v2_phrase_text_position: 33%;
  --app_v2_remaining_text_position: 39%;
  --app_v2_charging_enabled_position_vertical: 50%;
  --app_v2_charge_enabled_square_dimension: 5vh;
  --app_v2_logo_position: 60vh;
  --app_v2_square_logo_width: 33vh;
  --app_v2_dist_square_bottom_bar: calc((100vh - var(--bottom_height)));
  --app_v2_upper_square_edge: calc(var(--app_v2_logo_position) - var(--app_v2_square_logo_width) / 2);
  --app_v2_lower_square_edge: calc(var(--app_v2_logo_position) + var(--app_v2_square_logo_width) / 2);
  --app_bottom_distance: calc(var(--app_v2_dist_square_bottom_bar) - var(--app_v2_lower_square_edge));
  --app_v2_lower_text_position: calc(var(--app_v2_lower_square_edge) + var(--app_bottom_distance) / 2);
  /* --app_v2_lower_text_position: calc(var(--app_bottom_distance) ); */
  /* --app_v2_lower_text_position: 87%; */
  --app_v2_square_sub_logo_width: 24vh;
  --app_v2_low_opacity: 0.5;
  /* Onboarding language pill toggle */
  --onboarding_language_btn_top: 2%;
  --onboarding_language_btn_right: 2%;
  --onboarding_language_toggle_width: 23vw;
  --onboarding_language_btn_height: 5.6vh;
  --onboarding_language_label_1_right: calc(var(--onboarding_language_btn_right) + 15.3vw);
  --onboarding_language_label_2_right: calc(var(--onboarding_language_btn_right) + 2.3vw);
  --onboarding_language_circle_size: 3.2vh;
  --onboarding_language_circle_top: calc(var(--onboarding_language_btn_top) + 1.2%);
  --onboarding_language_circle_left_right: calc(var(--onboarding_language_btn_right) + 14vw);
  --onboarding_language_circle_right_right: calc(var(--onboarding_language_btn_right) + 1.6vw);
  /* Onboarding flow column (issue #1117). The onboarding page is the one
     mobile page laid out in normal flow rather than in % of the viewport:
     the branded frames stay pinned to the viewport and the form scrolls over
     them, so a short browser viewport costs scrolling and never squeezes one
     field on top of the next. The column starts just below the top edge of
     the white card, which the frame pins at --app_v2_top_margin -- expressed
     here in length units because a percentage padding would resolve against
     the width, not the height. */
  --onb_card_top: max(10dvh, env(safe-area-inset-top, 0px));
  --onb_flow_top: calc(var(--onb_card_top) + 3vh);
  --onb_field_gap: 1.2vh;
  --onb_label_font: 12px;
  --onb_section_font: 13px;
  /* Portal shortcut on the header-less mobile pages. Top-left, so it stays
     clear of the onboarding language pill, which is anchored top-right. */
  --portal_index_btn_top: 2%;
  --portal_index_btn_left: var(--app_v2_left_margin);
  --portal_index_btn_height: 4vh;
  /* Pit sensors bypass button (FPS/parking-core#1754): top-right, level with
     the Portal shortcut, which sits top-left. */
  --pit_bypass_btn_top: var(--portal_index_btn_top);
  --pit_bypass_btn_right: var(--app_v2_left_margin);
  --pit_bypass_btn_height: 4vh;
  --pit_bypass_icon_size: 3.2vh;
}

.onboarding_language_label {
  font-size: 1.5vh;
  font-weight: bold;
  text-align: center;
  color: white;
  width: 3.5vw;
  height: var(--onboarding_language_btn_height);
  line-height: var(--onboarding_language_btn_height);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Portal shortcut shown only to portal accounts (Administrator / Service) on
   the two mobile pages that are served without the platform header -- see
   recipes/hmi/central_app/portal_index_button.yaml. */
.portal_index_btn {
  padding: 0 3vw;
  border-radius: calc(var(--portal_index_btn_height) / 2);
  background-color: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 1.8vh;
  font-weight: bold;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* Pit sensors bypass button of the technicians' app (FPS/parking-core#1754),
   recipes/hmi/central_app/mobile_app_v2.yaml. The pill carries the state text
   and takes the press; the state icon sits over its right end and lets the
   press through. */
.pit_bypass_btn {
  padding: 0 calc(var(--pit_bypass_icon_size) + 2.5vw) 0 3vw;
  border-radius: calc(var(--pit_bypass_btn_height) / 2);
  background-color: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 1.8vh;
  font-weight: bold;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.pit_bypass_icon {
  top: calc(var(--pit_bypass_btn_top) + (var(--pit_bypass_btn_height) - var(--pit_bypass_icon_size)) / 2);
  right: calc(var(--pit_bypass_btn_right) + 1vw);
  width: var(--pit_bypass_icon_size);
  height: var(--pit_bypass_icon_size);
  border-radius: 50%;
  overflow: visible;
  pointer-events: none;
  z-index: 11;
}

/* Bypassed: the pit is unguarded, so it keeps calling attention to itself */
.pit_bypass_pulse {
  animation: pit_bypass_pulse 1.4s ease-in-out infinite;
}

@keyframes pit_bypass_pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 108, 0, 0.9);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 1.2vh rgba(239, 108, 0, 0);
    transform: scale(1.12);
  }
}

/* Pending: the Friendly Parking mark spinning and glowing until the parking
   system reports the new state */
.pit_bypass_spin {
  animation: pit_bypass_spin 1.2s linear infinite,
    pit_bypass_glow 1.2s ease-in-out infinite;
}

@keyframes pit_bypass_spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pit_bypass_glow {
  0%, 100% {
    filter: drop-shadow(0 0 0.2vh rgba(255, 212, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 1vh rgba(255, 212, 0, 1));
  }
}

.mobile_v2_element {
  position: absolute;
  display: flex;
  overflow: hidden;
}

.mobile_v2_element_top {
  top: 0;
}

.mobile_v2_element_bottom {
  bottom: 0;
}

.max-width-80 {
  max-width: 80vw;
}

.lower_button_highlight {
  background: #b3b3b3;
  border-radius: 15px;
}

.mobile_v2_element_bottom_parametric {
  bottom: 0;
  height: var(--bottom_height); /* Use variable width */
}

.mobile_v2_element img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile_v2_element_img_fill img {
  object-fit: fill;
}

.mobile_v2_element_img_cover img {
  object-fit: cover;
}

.mobile_v2_element_inner_top img {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
}


.mobile_v2_element_inner_bottom img {
  position: absolute;
  width: 100%;
  height: auto;
  bottom: 0;
}

.mobile_v2_upper_five_percent {
  transform: translateY(-5%);
}

.mobile_v2_center_base {
  position: absolute;
  left: 50%; /* Center horizontally */
  width: var(--mobile-width); /* Use variable width */
  transform: translateX(-50%); /* Center horizontally */
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  overflow: hidden;
}

.mobile_v2_center_base img {
  width: 100%; /* Make the image take up the full width of its container */
  height: auto; /* Adjust height automatically to maintain the aspect ratio */
  object-fit: contain; /* Ensure the entire image fits within the container */
}

.mobile_v2_center_25_upper {
  top: 25%; /* Position at the upper quarter */
  transform: translate(-50%, -50%); /* Adjust for true centering */
}

.mobile_v2_center_50_middle {
  top: 50%; /* Position in the middle */
  transform: translate(-50%, -50%); /* Adjust for true centering */
}

.mobile_v2_center_75_lower {
  top: 75%; /* Position at the lower quarter */
  transform: translate(-50%, -50%); /* Adjust for true centering */
}

.mobile_v2_text_base {
  position: absolute;
  left: 50%; /* Center horizontally */
  width: var(--upper-text-width);
  transform: translate(-50%,-50%); /* Center horizontally */
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  text-align: center; /* Center text inside the container */
  overflow: hidden; /* Hide overflow */
}

.mobile_v2_text_base_left {
  position: absolute;
  left: 50%; /* Center horizontally */
  width: var(--upper-text-width);
  display: flex;
  overflow: hidden; /* Hide overflow */
  font-size: 4.5vw;
  transform: translateY(-50%);
  font-family: 'Arial Narrow',Arial;
}

.mobile_v2_combobox_base {
  position: absolute;
  left: 50%; /* Center horizontally */
  width: var(--combobox-width); /* Variable width for the combobox */
  display: flex;
  overflow: hidden; /* Hide overflow */
  font-size: 4.5vw;
  font-family: 'Arial Narrow', Arial;
  transform: translate(-50%,-50%); /* Center horizontally */
  justify-content: center; /* Center the combobox within the flex container */
  align-items: center; /* Vertically center items within the combobox */
}

.mobile_v2_text_align_center_v {
  align-items: center; /* Vertically center items within the combobox */
}

.mobile_v2_text_align_left {
  align-items: left; /* Vertically center items within the combobox */
}

.mobile_v2_text_align_center_hv {

  justify-content: center; /* Center the combobox within the flex container */
  align-items: center; /* Vertically center items within the combobox */
}

.mobile_v2_text_align_center_v_right_h {

  justify-content: right; /* Center the combobox within the flex container */
  align-items: center; /* Vertically center items within the combobox */
}

.mobile_v2_text_bold {
  font-weight: bold;
}

/* A secondary action inside a pull-up panel, e.g. "My Vehicles" under the
   switch-cars combo (#1709): smaller and muted than the panel's own rows,
   with a chevron instead of an underline, so it reads as a way out of the
   panel rather than another entry in it. */
.app_v2_quiet_link {
  font-size: calc(var(--app_v2_general_text_font_size) * 0.75);
  font-weight: normal;
  color: #8a8a8a;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app_v2_quiet_link::after {
  content: "\203A";
  margin-inline-start: 0.4em;
  font-size: 1.2em;
}

.app_v2_quiet_link:active {
  color: #555;
}

.mobile_v2_position_parametric {
  top: var(--iscan-position-parametric); /* Position at the lower quarter */
  left: var(--iscan-position-parametric_offset_x); /* Position at the lower quarter */
  transform: translate(-50%, -50%); /* Adjust for true centering */
}

.mobile_v2_position_parametric_left {
  top: var(--iscan-position-parametric); /* Position at the lower quarter */
  left: var(--iscan-position-parametric_offset_x); /* Position at the lower quarter */
  transform: translateY(-50%); /* Adjust for true centering */
}

.mobile_v2_position_parametric_right_bound {
  left: auto;
  right: var(--iscan-position-parametric_offset_x_right_bound);
}

.mobile_v2_position_height_bound {
  width: auto;
  height: var(--mobile-height);
}

.mobile_v2_position_only_height_bound {
  height: var(--mobile-height);
}

.mobile_v2_position_height_bound img {
  width: auto; /* Make the image take up the full width of its container */
  height: 100%; /* Adjust height automatically to maintain the aspect ratio */
  object-fit: contain; /* Ensure the entire image fits within the container */
}

/*--------------------------------------------------------------
# Onboarding: the flowing single-page form (issue #1117)
#
# Every other mobile screen is a flat list of absolutely positioned elements
# sized in % of the viewport. That works for a dashboard, which has a fixed
# number of things on it, and fails for a form: the inputs keep their ~36px
# height while the percentages shrink with the viewport, so in a browser tab
# (URL bar + system nav bar) the rows collapse into each other.
#
# The onboarding page is therefore split in two layers:
#   .onb_fixed_layer - the branded frames, pinned to the viewport, so their
#                      percentages keep meaning what they meant before and the
#                      backdrop does not stretch with a long form;
#   .onb_flow        - one normal-flow column on top of them, which is what
#                      gives <body> its height. A long form makes a long page
#                      and the page scrolls; nothing is ever compressed.
--------------------------------------------------------------*/
.mobile_v2_element.onb_fixed_layer,
.mobile_v2_center_base.onb_fixed_layer,
.mobile_v2_text_base.onb_fixed_layer,
.onb_fixed_layer {
  position: fixed;
}

/* Everything in the column is a column-flex item sized `width:100%`, and in a
   column flex container that is the *cross* size: flex-shrink only pulls the
   main axis back into line, so any item that also has padding or a border --
   the error box, the action button -- drew itself that much wider than the
   fields beside it and hung off to the right. Border-box makes 100% mean 100%
   for all of them (issue #1117). */
.onb_flow,
.onb_flow * {
  box-sizing: border-box;
}

.onb_flow {
  position: relative; /* in flow: this is what gives <body> its height */
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 80%;
  margin: 0 auto;
  padding-top: var(--onb_flow_top);
  padding-bottom: 6vh;
}

/* A group the recipe can show, hide or collapse as a whole. The visibility
   animation sets display:none when its bit is off, which in flow removes the
   group from the layout instead of leaving a hole. */
.onb_group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.onb_logo {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 14vh;
  margin-bottom: 1vh;
}

.onb_logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.onb_section {
  display: flex;
  align-items: flex-end;
  width: 100%;
  margin: 2.4vh 0 0.8vh;
  font-size: var(--onb_section_font);
  font-weight: bold;
  color: #555;
}

.onb_field {
  display: flex;
  width: 100%;
  margin-bottom: var(--onb_field_gap);
}

/* Plate-lookup feedback under the license plate input. Hidden by default and
   toggled with display (not visibility) by iscan_onb_show/iscan_onb_hide, so
   it does not reserve an empty line while there is nothing to say. */
.onb_hint {
  display: none;
  width: 100%;
  margin: -0.4vh 0 0.8vh;
  font-size: var(--onb_label_font);
}

.onb_toggle_row {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 2.4vh 0 0.4vh;
}

.onb_toggle_row input {
  width: 2vh;
  height: 2vh;
  margin: 0 8px 0 0;
  accent-color: #f5a623;
}

.onb_toggle_row label {
  font-size: var(--onb_section_font);
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

/* One error per line, straight from the server. The accent edge marks it as a
   notice rather than another field, and the box lines up exactly with the
   inputs it is complaining about. */
.onb_error {
  display: none;
  width: 100%;
  margin-top: 1.6vh;
  padding: 11px 14px;
  border: 1px solid #f3c6c6;
  border-left: 4px solid #d9534f;
  border-radius: 10px;
  background-color: #fdf1f1;
  color: #b3282a;
  font-size: var(--onb_label_font);
  line-height: 1.65;
  white-space: pre-line;
  text-align: left;
}

/* Deliberately quiet: a soft grey pill rather than the orange slab the wizard
   ended on. There is one action at the foot of the form and nothing to choose
   between, so the button does not have to shout to be found -- and an orange
   block the width of the card was the loudest thing on a page whose own brand
   colour is that same orange. */
.onb_action_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.6vh;
  margin-top: 2.6vh;
  border: 1px solid #d2d2d2;
  border-radius: 12px;
  background: #efefef;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  color: #333;
  font-size: 2.3vh;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.onb_action_btn:active {
  background: #e0e0e0;
  box-shadow: none;
}

/* The safety terms are a page section like any other now: the text runs at
   its natural height and the page scrolls, instead of a 35%-of-viewport box
   that shrank to a few lines whenever the browser chrome was showing. */
.onb_terms_text {
  display: block;
  width: 100%;
  margin-top: 1vh;
  font-size: var(--onb_label_font);
  line-height: 1.6;
  white-space: pre-line;
  /* start (not left) so the terms align to the reading edge of whatever
     direction dir="auto" resolves from the text -- right for hebrew, left for
     english (issue #1129). */
  text-align: start;
}

/* The form column scrolls, and the white card it sits on is pinned to the
   viewport, so content scrolled above the card's top edge would be drawn on
   the yellow band above it. This is a copy of that band -- the same orange,
   the same watermark -- clipped to the band's height and painted over the
   column, so a section header scrolling up disappears under the header
   instead of spilling onto the yellow. Its children are sized in dvh rather
   than % on purpose: they must keep the geometry of the frames they copy,
   which is measured against the viewport, not against this strip. */
.onb_header_mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--app_v2_top_margin);
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

/* .slider {
  width: 50vw;
  -webkit-appearance: none;
  appearance: none;
  height: var(--slider_height);
  background: #f6f6f6;
  outline: none;
  border-radius: 15px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15vw;
  height: var(--slider_height);
  background-image: url('X_ICON.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
} */

.slider-label {
  position: absolute;  /* Positioning the label */
  width: 100%;  /* Full width to center text easily */
  text-align: center;  /* Center the text over the slider */
  top: 50%;  /* Position at the middle of the container */
  transform: translateY(-50%);  /* Center vertically */
  pointer-events: none;  /* Makes the label click-through */
  color: #666;  /* Text color */
  font-size: 16px;  /* Text size */
}

.slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: var(--slider_height);
  background: #f6f6f6;
  outline: none;
  border-radius: 50px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--slider_height);
  height: var(--slider_height);
  background-image: var(--url_slider);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  cursor: pointer;
}

.slider_fps {
  background: #dbdbdb;
  padding-left: calc(var(--slider_height) / 4);
  padding-right: calc(var(--slider_height) / 4);
  box-sizing: border-box;
}

.slider_fps + .slider-label {
  color: #444;
}

.slider_fps::-moz-range-track {
  background: #dbdbdb;
  border-radius: 50px;
  height: var(--slider_height);
}

.slider_fps::-moz-range-thumb {
  width: var(--slider_height);
  height: var(--slider_height);
  background-image: var(--url_slider);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
