:host([size=small]) {
  --r-dialog--width: 23.4375rem;
  --r-dialog--max-height: 15.625rem;
}

:host([size=medium]) {
  --r-dialog--width: 37.5rem;
  --r-dialog--max-height: 37.5rem;
}

:host([size=large]) {
  --r-dialog--width: 50rem;
  --r-dialog--max-height: 45rem;
}

@media (max-width: 50rem) {
  :host([size=large]) {
    --r-dialog--width: 100%;
    --right: 0;
    --left: 0;
    --r-dialog--footer--flex-wrap: wrap;
  }
}
@media (max-height: 48.75rem) {
  :host([size=large]) {
    --r-dialog--margin: 18px auto;
    --top: 0;
    --bottom: 0;
  }
}
@media (max-width: 37.5rem) {
  :host([size=medium]) {
    --r-dialog--width: 100%;
    --right: 0;
    --left: 0;
    --r-dialog--footer--flex-wrap: wrap;
  }
}
@media (max-height: 43.75rem) {
  :host([size=medium]) {
    --r-dialog--margin: 18px auto;
    --top: 0;
    --bottom: 0;
  }
}
:host {
  top: var(--top, auto);
  right: var(--right, auto);
  bottom: var(--bottom, auto);
  left: var(--left, auto);
}

.r-dialog {
  border: var(--r-dialog--border, none);
  padding: var(--r-dialog--padding, 24px 0);
  box-sizing: var(--r-dialog--box-sizing, border-box);
  overflow: var(--r-dialog--overflow, hidden);
  width: var(--r-dialog--width, auto);
  height: var(--r-dialog--height, auto);
  background-color: var(--r-dialog--background-color, var(--r-background-softest));
  margin: var(--r-dialog--margin, auto);
  max-height: var(--r-dialog--max-height, auto);
}
.r-dialog--content {
  display: var(--r-dialog--content--display, flex);
  flex-direction: var(--r-dialog--content--flex-direction, column);
  gap: var(--r-dialog--content--gap, var(--r-spacing-150, 1.5rem));
  color: var(--r-dialog--content--color, var(--r-text-regular));
  height: var(--r-dialog--content--height, 100%);
}
.r-dialog ::slotted([slot=header]), .r-dialog--headline {
  font-family: var(--r-dialog--headline--font-family, var(--r-font-family-heading, sans-serif));
  font-size: var(--r-dialog--headline--font-size, var(--r-font-size-500));
  font-weight: var(--r-dialog--headline--font-weight, var(--r-font-weight-light));
  margin: var(--r-dialog--headline--margin, 0);
  flex: var(--r-dialog--headline--flex, 1);
}
.r-dialog--close {
  --r-button--display: var(--r-dialog--close--dispaly, flex);
  --r-button--padding: var(--r-dialog--close--padding, 0);
  position: var(--r-dialog--close--position, relative);
  margin-top: var(--r-dialog--close--margin-top, -0.5rem);
}
.r-dialog--header {
  display: var(--r-dialog--header--display, flex);
  justify-content: var(--r-dialog--header--justify-content, space-between);
  align-items: var(--r-dialog--header--align-items, start);
  gap: var(--r-dialog--header--gap, var(--r-spacing-050, 0.5rem));
  padding: var(--r-dialog--header--padding, 0 24px);
}
.r-dialog--body {
  font-family: var(--r-dialog--body--font-family, var(--r-font-family-text));
  font-size: var(--r-dialog--body--font-size, var(--r-font-size-desktop-400));
  line-height: var(--r-dialog--body--line-height, var(--r-line-height-m));
  flex-grow: var(--r-dialog--body--flex-grow, 1);
  overflow-y: var(--r-dialog--body--overflow, auto);
  justify-self: var(--r-dialog--body--justify-self, stretch);
  padding: var(--r-dialog--body--padding, 0 24px);
}
.r-dialog--body {
  scrollbar-width: auto;
  scrollbar-color: var(--r-border-softer) #ffffff;
}
.r-dialog--body::-webkit-scrollbar {
  width: var(--r-spacing-100, 1rem);
}
.r-dialog--body::-webkit-scrollbar-track {
  background: #ffffff;
}
.r-dialog--body::-webkit-scrollbar-thumb {
  background-color: var(--r-border-softer);
  border-radius: 10px;
  border: 3px solid #ffffff;
}
.r-dialog ::slotted([slot=footer]) {
  margin-top: var(--r-dialog--footer--margin-top, auto);
  display: var(--r-dialog--footer--display, flex);
  flex-direction: var(--r-dialog--footer--flex-direction, row);
  flex-wrap: var(--r-dialog--footer--flex-wrap, nowrap);
  justify-content: var(--r-dialog--footer--justify-content, flex-start);
  gap: var(--r-dialog--footer--gap, var(--r-spacing-100, 1rem));
  align-items: var(--r-dialog--footer--align-items, end);
  padding: var(--r-dialog--header--padding, 0 24px);
}
.r-dialog::backdrop {
  background: var(--backdrop--background-color, rgba(0, 0, 0, 0.25));
}
