@import url("/assets/styles/tokens.css");
@import url("/assets/styles/precision-scrollbar.css");

/* Strategies presentation layer for the isolated Hypotheekbond runtime. */

html {
  min-width: 0;
  min-height: 0;
  scrollbar-color: var(--color-border-premium) var(--color-bg-inverse);
  scrollbar-width: thin;
  background: var(--color-bg-surface);
}

body {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  font-size: 1rem;
  line-height: var(--line-height-body);
}

#renteoverzicht-app,
#renteoverzicht-app *,
#renteoverzicht-app *::before,
#renteoverzicht-app *::after {
  box-sizing: border-box;
  font-family: var(--font-family-body);
}

#renteoverzicht-app {
  width: 100%;
  color: var(--color-text-primary);
}

.ReactModal__Content[role="dialog"] {
  box-sizing: border-box;
  max-height: 36rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html[data-strategies-viewport="small"] .ReactModal__Content[role="dialog"] {
  max-height: 12rem;
}

html[data-strategies-viewport="medium"] .ReactModal__Content[role="dialog"] {
  max-height: 20rem;
}

html[data-strategies-viewport="large"] .ReactModal__Content[role="dialog"] {
  max-height: 28rem;
}

* {
  scrollbar-color: var(--color-border-premium) var(--color-bg-inverse);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 0.75rem;
  height: 0.75rem;
}

*::-webkit-scrollbar-track {
  border: 1px solid var(--color-border-premium);
  border-radius: 100em;
  background: var(--color-bg-inverse);
}

*::-webkit-scrollbar-thumb {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 3px solid var(--color-bg-inverse);
  border-radius: 100em;
  background: var(--color-border-premium);
}

*::-webkit-scrollbar-corner {
  background: var(--color-bg-inverse);
}

#renteoverzicht-app button,
#renteoverzicht-app input,
#renteoverzicht-app select {
  font: inherit;
}

#renteoverzicht-app button {
  font-size: 0.875rem;
  white-space: nowrap;
}

#renteoverzicht-app button,
#renteoverzicht-app a {
  transition:
    background-color var(--animation-primary),
    border-color var(--animation-primary),
    color var(--animation-primary);
}

#renteoverzicht-app button:focus-visible,
#renteoverzicht-app a:focus-visible,
#renteoverzicht-app input:focus-visible,
#renteoverzicht-app select:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

#renteoverzicht-app [data-strategies-product-expander],
#renteoverzicht-app [data-strategies-provider-footer] {
  display: none;
}

#renteoverzicht-app [data-strategies-appointment] {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 1rem;
}

#renteoverzicht-app [data-strategies-rate-list] {
  padding: 0;
  padding-inline-end: 1.5rem;
}

#renteoverzicht-app [data-strategies-rate-list] > * {
  border-bottom: 1px solid var(--color-border-default);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.strategies-scrollbar__thumb {
  width: 0.75rem;
}

@media (min-width: 48rem) {
  #renteoverzicht-app [data-strategies-rate-main] {
    min-width: 0;
    flex: 1 1 auto;
  }

  #renteoverzicht-app [data-strategies-rate-action-cell] {
    min-width: 0;
    flex: 0 0 13rem;
  }

  #renteoverzicht-app [data-strategies-comparison-column] {
    min-width: 0;
    flex: 0 0 2.75rem;
    padding-inline: 0.25rem;
  }
}

@media (max-width: 47.99rem) {
  #renteoverzicht-app [data-strategies-rate-list] {
    padding: 0;
  }

  *::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
  }

  *::-webkit-scrollbar-thumb {
    border-width: 2px;
  }
}

/* The document uses the Strategies precision scrollbar. Keep native scrollbars for nested controls only. */
html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

::selection {
  background: var(--color-selection-bg);
  color: var(--color-selection-text);
}
