/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
/* The primary use-case for responsive spacings are
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
/* Elevation */
/* Border */
/* Opacity */
/* Transitions */
/* Screen sizes */
/* Container sizes */
/* Variants for adaptive components like input, select, notification, ... */
.db-visually-hidden,
[data-visually-hidden=true] {
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 0 !important;
  all: initial;
  inset-block-start: 0 !important;
  block-size: 1px !important;
  position: absolute !important;
  inline-size: 1px !important;
  border-width: 0 !important;
  border-style: initial !important;
  border-color: initial !important;
  border-image: initial !important;
  padding: 0 !important;
  pointer-events: none !important;
}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

/**
	Generates 3 types of placeholders, e.g:
	- %db-component-variables-md
	- %db-font-size-md
	- %db-overwrite-font-size-md
 */
@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

.db-radio {
  font: var(--db-type-body-md);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-radio {
    /* Those variables are only for components to calculate heights and change icons */
    --db-icon-font-weight: var(--db-base-body-icon-weight-md);
    --db-icon-font-size: var(--db-base-body-icon-font-size-md);
  }
}

@layer variables {}

@layer variables {}

.db-radio[data-size=small] {
  font: var(--db-type-body-sm);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-radio[data-size=small] {
    /* Those variables are only for components to calculate heights and change icons */
    --db-icon-font-weight: var(--db-base-body-icon-weight-sm);
    --db-icon-font-size: var(--db-base-body-icon-font-size-sm);
  }
}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

/* Use for body tags like <p> */
/* Use for headline tags like <h1> */
/**
 * @mixin screen-min-max
 * @param $data an object like (min:"sm", max:"lg") or (min: "sm")
 */
.db-radio {
  /* stylelint-disable-next-line at-rule-empty-line-before */
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-radio:not([data-hide-asterisk=true]):has(input:required):is(label)::after,
.db-radio:not([data-hide-asterisk=true]):has(input:required) > label::after, .db-radio:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
.db-radio:not([data-hide-asterisk=true])[data-required=true] > label::after {
  /* stylelint-disable-next-line db-ux/use-spacings */
  padding-inline-start: 1px;
  content: "*";
}
@supports (content: ""/"") {
  .db-radio:not([data-hide-asterisk=true]):has(input:required):is(label)::after,
  .db-radio:not([data-hide-asterisk=true]):has(input:required) > label::after, .db-radio:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
  .db-radio:not([data-hide-asterisk=true])[data-required=true] > label::after {
    content: "*"/"";
  }
}
.db-radio:has(input:disabled) {
  opacity: var(--db-opacity-md);
}
.db-radio:is(label),
.db-radio > label {
  align-items: flex-start;
  position: relative;
  color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
}
.db-radio:is(label):not([hidden]),
.db-radio > label:not([hidden]) {
  display: flex;
}
.db-radio input {
  background-color: var(--db-adaptive-bg-basic-transparent-full-default);
  place-content: center center;
  appearance: none;
  aspect-ratio: 1;
  /* stylelint-disable-next-line db-ux/use-border-width */
  border: min(var(--db-border-width-2xs), 2px) solid var(--db-check-element-border-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
  block-size: var(--db-icon-font-size);
  inline-size: var(--db-icon-font-size);
  padding: 0;
  margin-inline-end: var(--db-spacing-fixed-xs);
}
.db-radio[data-size=small] input {
  margin-inline-end: var(--db-spacing-fixed-2xs);
}
.db-radio[data-hide-label=true] {
  font-size: 0;
}
.db-radio[data-hide-label=true] input {
  margin-inline-end: 0;
}
.db-radio:not(:has(input:checked, input:disabled)):has(input:hover, > label:hover, :is(label):hover) {
  --db-check-element-label-color: var(
  	--db-adaptive-on-bg-basic-emphasis-100-hovered
  );
}
.db-radio:not(:has(input:checked, input:disabled)):has(input:hover, > label:hover, :is(label):hover):is(label),
.db-radio:not(:has(input:checked, input:disabled)):has(input:hover, > label:hover, :is(label):hover) > label {
  cursor: var(--db-overwrite-cursor, pointer);
}
.db-radio:not(:has(input:checked, input:disabled)):has(input:hover, > label:hover, :is(label):hover) input {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
}
.db-radio:not(:has(input:checked, input:disabled)):has(input:active, > label:active, :is(label):active) {
  --db-check-element-label-color: var(
  	--db-adaptive-on-bg-basic-emphasis-100-pressed
  );
}
.db-radio:not(:has(input:checked, input:disabled)):has(input:active, > label:active, :is(label):active):is(label),
.db-radio:not(:has(input:checked, input:disabled)):has(input:active, > label:active, :is(label):active) > label {
  cursor: var(--db-overwrite-cursor, pointer);
}
.db-radio:not(:has(input:checked, input:disabled)):has(input:active, > label:active, :is(label):active) input {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
}
.db-radio:has(input:not([data-custom-validity]):required:valid) {
  --db-check-element-border-color: var(
  	--db-successful-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-successful-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-successful-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-successful-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-successful-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-successful-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-successful-bg-basic-transparent-full-pressed
  );
}
.db-radio:has(input[data-custom-validity=valid]), .db-radio[data-custom-validity=valid] {
  --db-check-element-border-color: var(
  	--db-successful-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-successful-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-successful-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-successful-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-successful-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-successful-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-successful-bg-basic-transparent-full-pressed
  );
}
.db-radio:has(input:not([data-custom-validity]):required:invalid) {
  --db-check-element-border-color: var(
  	--db-critical-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-critical-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-critical-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-critical-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-critical-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-critical-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-critical-bg-basic-transparent-full-pressed
  );
}
.db-radio:has(input[data-custom-validity=invalid]), .db-radio[data-custom-validity=invalid] {
  --db-check-element-border-color: var(
  	--db-critical-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-critical-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-critical-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-critical-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-critical-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-critical-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-critical-bg-basic-transparent-full-pressed
  );
}
.db-radio input {
  border-radius: var(--db-border-radius-full);
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-radio input {
    transition: border-width var(--db-transition-duration-fast) var(--db-transition-timing-functional);
  }
}
.db-radio input:checked:not([data-size=small]) {
  border-width: calc((var(--db-icon-font-size) - var(--db-sizing-2xs)) / 2);
}
.db-radio input:checked[data-size=small] {
  border-width: calc((var(--db-icon-font-size) - var(--db-sizing-3xs)) / 2);
}
.db-radio input:focus-visible {
  border-radius: var(--db-border-radius-full);
}
