/* Shared cookie notice. Dimensions and copy follow the supplied screenshot. */
#uchurulit-cookie-notice,
#uchurulit-cookie-notice * { font-family: Arial, Helvetica, sans-serif !important; }
#uchurulit-cookie-notice {
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex !important;
  align-items: center;
  width: 720px;
  max-width: calc(100% - 40px);
  min-height: 88px;
  margin: 0;
  padding: 20px 30px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
  font: 17px/24px Arial, Helvetica, sans-serif;
  text-align: left;
  letter-spacing: normal;
}
#uchurulit-cookie-notice .cookie-notice-icon {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0 9px 0 0;
  padding: 0;
  border: 0;
}
#uchurulit-cookie-notice .cookie-notice-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 26px 0 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
#uchurulit-cookie-notice .cookie-notice-link {
  color: #005bff;
  font: inherit;
  text-decoration: none;
}
#uchurulit-cookie-notice .cookie-notice-accept {
  box-sizing: border-box;
  display: block;
  flex: 0 0 109px;
  align-self: flex-start;
  width: 109px;
  min-width: 109px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #005bff;
  color: #fff;
  box-shadow: none;
  font: 600 16px/44px Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
#uchurulit-cookie-notice .cookie-notice-link:hover { text-decoration: underline; }
#uchurulit-cookie-notice .cookie-notice-accept:hover { background: #004ee0; }
#uchurulit-cookie-notice .cookie-notice-accept:active { background: #0044c4; }
#uchurulit-cookie-notice :focus-visible { outline: 2px solid #005bff; outline-offset: 4px; }
#uchurulit-cookie-notice ::selection { background: #d9e7ff; color: #111; }
@media (max-width: 600px) {
  #uchurulit-cookie-notice {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) 80px;
    gap: 8px;
    max-width: calc(100% - 20px);
    min-height: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 12px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 18px;
  }
  #uchurulit-cookie-notice .cookie-notice-icon { width: 24px; height: 24px; margin: 0; }
  #uchurulit-cookie-notice .cookie-notice-text { margin: 0; }
  #uchurulit-cookie-notice .cookie-notice-accept {
    align-self: center;
    width: 80px;
    min-width: 80px;
    margin: 0;
    border-radius: 8px;
    font-size: 13px;
  }
}
@media print { #uchurulit-cookie-notice { display: none !important; } }


/* Keep cabinet loading statuses available to assistive technology. */
:root { --cabinet-loading-ui: 1; }
[data-native-loading] {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
}
.empty[data-native-loading] > :is(h3, p) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[data-native-loading]:not(.site-loading-status)::before,
html[data-native-loading-ui] .academic-entry-pending::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-inline: auto;
  background: url("/img/favicon.svg") center / contain no-repeat;
  pointer-events: none;
}
html[data-native-loading-ui] .academic-entry-pending::before {
  box-sizing: content-box;
  padding: 0;
  margin: 24px auto;
}
html[data-native-loading-ui] #boot.site-loading-status:not([data-native-loading])::before {
  content: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-native-loading]:not(.site-loading-status)::before,
  html[data-native-loading-ui] .academic-entry-pending::before {
    animation: native-loading-spin 1.4s linear infinite;
  }
}
@keyframes native-loading-spin { to { transform: rotate(1turn); } }


/* A select cannot render a rotating pseudo-element. Its pending status occupies
   the same place until the selected option, the disabled state or the error changes. */
[data-loading-option], [data-loading-choice] {
  display: none !important;
}
select:disabled:has(> option[data-loading-option]:checked) {
  display: none !important;
}
select:disabled:has(> option[data-loading-option]:checked) + [data-loading-choice] {
  display: inline-block !important;
}
.student-reference-contract > header > [data-loading-choice] {
  margin-inline-start: auto;
}
#overlay .student-reference-contract:has(> [data-contract-visibility-status]:not([hidden])) > header > [data-loading-choice] {
  display: none !important;
}

/* One progress mark per contract or driving panel while its fields load together. */
#overlay .student-reference-contract:has(> .student-reference-payments [data-native-loading]) > header > [data-loading-choice],
#overlay .student-driving-filters:has(~ [data-driving-list] [data-native-loading]) [data-driving-total][data-native-loading]::before {
  display: none !important;
}

/* Keep a loading mark inside the active window, including same-origin frames. */
html:is([data-loading-window-open], [data-loading-frame-covered]) {
  --cabinet-loading-opacity: 0;
  --cabinet-loading-play: paused;
}
html:not([data-loading-frame-covered]) [data-loading-foreground] {
  --cabinet-loading-opacity: 1;
  --cabinet-loading-play: running;
}
html:is([data-loading-window-open], [data-loading-frame-covered]) :is(
  [data-native-loading], .site-loading-status, .site-loading-region[aria-busy="true"]:has(> iframe),
  .academic-entry-pending
)::before,
html:is([data-loading-window-open], [data-loading-frame-covered]) :is(.app-loading-logo, .app-pull-refresh[data-state="loading"]) {
  opacity: var(--cabinet-loading-opacity) !important;
  animation-play-state: var(--cabinet-loading-play) !important;
}
