/* Map Radzen typography and components to our tokens */
:root {
  --rz-text-font-family: var(--dp-font-family);
}

/* Encourage Radzen components to use our token - minimal specificity */
.rz-text, .rz-typography, body, html {
  font-family: var(--dp-font-family) !important;
}

/* Explicit small-size fixes: ensure captions and small text use token-based sizing */
.rz-caption, .caption, .small-text {
  font-family: var(--dp-font-family) !important;
}

/* Radzen renders the role="checkbox"/role="radio" wrapper as the real control - it owns the role, the
   checked state and the tab stop - and keeps a native input in a .rz-helper-hidden-accessible box for
   form integration. That input is a second interactive descendant, which is a WCAG 4.1.2 failure on
   every checkbox and radio in the product (and an unlabelled control besides). The wrapper is the
   control assistive technology must see, so the shadow input is taken out of the page. */
.rz-chkbox .rz-helper-hidden-accessible,
.rz-radiobutton .rz-helper-hidden-accessible {
  display: none !important;
}

/* WCAG 2.5.8 wants a 24x24 CSS px target. Radzen's checkbox ships at 18x18 (--rz-checkbox-width /
   -height), and because its visible square is absolutely positioned over the whole wrapper, growing
   the wrapper would also grow the square. The wrapper therefore takes the 24px target size and the
   square is inset back to the designed 18px, so the hit area doubles while the drawing does not. */
.rz-chkbox {
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
}

  .rz-chkbox > .rz-chkbox-box {
    inset: .1875rem;
  }

/* Same rule for the scheduler's day cells: the slot header is a role="button" target and its
   content box measures 23px tall. */
.rz-scheduler .rz-slot-title {
  min-height: 1.5rem;
}
