/* Form surfaces must not inherit the light ink of the navy page theme. */
:root {
  --bkr-caret: #a87816;
  caret-color: var(--bkr-caret);
}

.w-calculator,
.w-application {
  --w-ink: #173348;
  --w-muted: #455d6b;
  --w-line: #b7cad5;
}

html body :is(
  input:not([type="hidden"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="color"]),
  textarea,
  select
):not(.bg-guarantee-choice > select) {
  color: #173348 !important;
  -webkit-text-fill-color: #173348 !important;
  background-color: #fff !important;
  color-scheme: light;
}

html body :is(input, textarea, select, [contenteditable]:not([contenteditable="false"])) {
  caret-color: var(--bkr-caret) !important;
}

/* Keep the mouse I-beam visible against the light fields in a dark browser theme. */
@media (any-hover: hover) and (forced-colors: none) {
  html body :is(input:not([type]), input:is([type="text"],[type="search"],[type="tel"],[type="email"],[type="url"],[type="number"],[type="password"]), textarea):not(:disabled,[readonly]) {
    cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAOElEQVR42mNgGHTg////DwlhggYIajn8x4WJMgAZwzQR7QJsriFJ06gBw8IAihMS1ZMyyZmJ7gAAUwD0RSA8hWsAAAAASUVORK5CYII=") 8 9, text;
    caret-color: #173348 !important;
  }
}

html body :is(input, textarea)::placeholder {
  color: #566b79 !important;
  -webkit-text-fill-color: #566b79 !important;
  opacity: 1;
}

html body :is(input, textarea, select):disabled:not(.bg-guarantee-choice > select) {
  color: #526675 !important;
  -webkit-text-fill-color: #526675 !important;
  background-color: #edf2f5 !important;
  opacity: 1;
}

html body select :is(option, optgroup) {
  color: #173348 !important;
  -webkit-text-fill-color: #173348 !important;
  background-color: #fff !important;
}

html body input::file-selector-button {
  color: #173348;
  background-color: #edf2f5;
}

html body :is(input, textarea):is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: #173348 !important;
  caret-color: var(--bkr-caret) !important;
}

html body :is(input, textarea, select, [contenteditable="true"]):focus-visible {
  outline: 2px solid var(--bkr-caret) !important;
  outline-offset: 2px;
}

html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus:not([aria-invalid="true"]) {
  border-color: var(--bkr-caret) !important;
  box-shadow: 0 0 0 2px #a8781626 !important;
}

html body :is(input, textarea, [contenteditable])::selection {
  background-color: #f2dea7;
  color: #173348;
}

/* Small-screen guarantee names use a visible wrapping label over a native select. */
.bg-guarantee-choice > select { color-scheme: light; }
.bg-guarantee-choice > span { color: #173348; -webkit-text-fill-color: #173348; }

.bkr-picker { position: relative; min-width: 0; }
.bkr-picker .bkr-picker-label { display: grid; gap: 6px; min-width: 0; }
.bkr-picker [data-picker-input] { padding-inline-end: 46px !important; }
.bkr-picker [data-picker-toggle] {
  position: absolute;
  inset-inline-end: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  color: #795612;
  background: #f7f0df;
}
.bkr-picker [data-picker-toggle]::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.bkr-picker [data-picker-toggle]:disabled { color: #586a75; background: #e5ebef; }
.bkr-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  inset-inline: 0;
  max-height: min(17rem, 42dvh);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #173348;
  border: 1px solid #9aadb9;
  border-radius: 8px;
  box-shadow: 0 8px 20px #06172428;
  color-scheme: light;
}
.bkr-picker [data-picker-option] {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #dce5e9;
  background: #fff;
  color: #173348;
  -webkit-text-fill-color: #173348;
  font-size: 15px;
  line-height: 1.45;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bkr-picker [data-picker-option] span { font-size: .875rem; }
.bkr-picker [data-picker-option]:is(:hover, [aria-selected="true"]) { background: #fff0cc; }
.bkr-picker [data-picker-status] { color: #405664; margin: 0; padding: .75rem; }
.bkr-picker [data-picker-status]:empty { display: none; }
