/* Variants for adaptive components like input, select, notification, ... */
.db-button {
  font: var(--db-type-body-md);
  /* 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);
}

.db-button[data-size=small] {
  font: var(--db-type-body-sm);
  /* 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);
}

.db-button {
  border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);
}

.db-button[data-variant=filled], .db-button[data-variant=ghost] {
  border: var(--db-border-width-3xs) solid transparent;
}

.db-button {
  border-radius: var(--db-border-radius-xs);
}

.db-button {
  font-weight: 700;
  overflow-wrap: break-word;
  white-space: pre-line;
  justify-content: center;
  text-align: center;
  align-items: center;
  vertical-align: top;
}
.db-button:not([hidden]) {
  display: inline-flex;
}

.db-button[data-variant=outlined], .db-button:not([data-variant]), .db-button[data-variant=""], .db-button[data-variant=ghost] {
  background-color: var(--db-adaptive-bg-basic-transparent-full-default);
  /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
}
.db-button[data-variant=outlined]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)), .db-button:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):not([data-variant]), .db-button[data-variant=""]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)), .db-button[data-variant=ghost]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
}
.db-button[data-variant=outlined]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea):not([data-variant]), .db-button[data-variant=""]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=ghost]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=outlined]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input), .db-button:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input):not([data-variant]), .db-button[data-variant=""]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input), .db-button[data-variant=ghost]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input) {
  cursor: initial;
}
.db-button[data-variant=outlined]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]):not([data-variant]), .db-button[data-variant=""]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=ghost]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=outlined]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)), .db-button:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)):not([data-variant]), .db-button[data-variant=""]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)), .db-button[data-variant=ghost]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}
.db-button[data-variant=outlined]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)), .db-button:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):not([data-variant]), .db-button[data-variant=""]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)), .db-button[data-variant=ghost]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
}
.db-button[data-variant=outlined]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea):not([data-variant]), .db-button[data-variant=""]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=ghost]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=outlined]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input), .db-button:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input):not([data-variant]), .db-button[data-variant=""]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input), .db-button[data-variant=ghost]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input) {
  cursor: initial;
}
.db-button[data-variant=outlined]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]):not([data-variant]), .db-button[data-variant=""]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=ghost]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=outlined]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)), .db-button:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)):not([data-variant]), .db-button[data-variant=""]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)), .db-button[data-variant=ghost]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}

.db-button[data-variant=brand] {
  background-color: var(--db-brand-origin-default);
  color: var(--db-brand-on-origin-default);
  border-color: var(--db-brand-on-bg-basic-emphasis-70-default);
  /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
}
.db-button[data-variant=brand]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-brand-origin-hovered);
  border-color: var(--db-brand-on-bg-basic-emphasis-70-default);
}
.db-button[data-variant=brand]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=brand]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input) {
  cursor: initial;
}
.db-button[data-variant=brand]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=brand]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}
.db-button[data-variant=brand]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-brand-origin-pressed);
  border-color: var(--db-brand-on-bg-basic-emphasis-70-default);
}
.db-button[data-variant=brand]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=brand]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input) {
  cursor: initial;
}
.db-button[data-variant=brand]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=brand]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}

.db-button {
  max-inline-size: 100%;
  color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
  min-block-size: var(--db-sizing-md);
  block-size: max-content;
  inline-size: fit-content;
  padding: var(--db-spacing-fixed-2xs) var(--db-spacing-fixed-md);
  text-decoration: none;
}
.db-button[data-no-text=true] {
  padding: 0;
  inline-size: var(--db-sizing-md);
  block-size: var(--db-sizing-md);
  font-size: 0 !important;
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-button[data-no-text=true]::before {
  --db-icon-margin-end: 0;
}
.db-button[data-no-text=true]::before {
  margin: auto;
}
.db-button[data-wrap=false] {
  white-space: nowrap;
}
.db-button[data-size=small] {
  font-weight: 700;
  min-block-size: var(--db-sizing-sm);
}
.db-button[data-size=small]:not([data-no-text=true]) {
  padding: 1px var(--db-spacing-fixed-sm);
}
.db-button[data-size=small]:not([data-no-text=true])::before {
  margin-inline-end: var(--db-spacing-fixed-2xs);
}
.db-button[data-size=small][data-no-text=true] {
  inline-size: var(--db-sizing-sm);
  block-size: var(--db-sizing-sm);
}
.db-button[data-width=full]:not([data-no-text=true]) {
  inline-size: 100%;
}
.db-button[data-variant=filled] {
  background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
  /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
}
.db-button[data-variant=filled]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-semi-hovered);
}
.db-button[data-variant=filled]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=filled]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input) {
  cursor: initial;
}
.db-button[data-variant=filled]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=filled]:hover:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}
.db-button[data-variant=filled]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-semi-pressed);
}
.db-button[data-variant=filled]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(textarea), .db-button[data-variant=filled]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input) {
  cursor: initial;
}
.db-button[data-variant=filled]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=checkbox]), .db-button[data-variant=filled]:active:not(:disabled,
[aria-disabled=true],
[tabindex="-1"],
:has(:disabled)):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}
.db-button:is(:disabled, [aria-disabled=true]) {
  opacity: var(--db-opacity-md);
}
.db-button:has(> .db-button) {
  margin: 0;
  padding: 0;
  block-size: var(--db-sizing-md);
}
.db-button:has(> .db-button)::before {
  content: none;
}
