:root {
  --color-label: #565656;
  --color-placeholder: #acacac;
  --color-heading-text: #333;
  --color-text-error: #ef4444;
  --color-input-border: #e4e4e6;
  --color-input-border-shadow: rgba(228, 228, 230, 0.6);
  --color-button-text: rgba(255, 255, 255, 0.95);
  --color-button-text-disabled: rgba(255, 255, 255, 0.4);
  --color-primary: #0074d4;
}

/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
:host {
  box-sizing: border-box;
}
:host *:where(:not(iframe, canvas, img, svg, video):not(svg *)) {
  all: unset;
  display: revert;
  background: none;
  border: none;
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
}
:host button {
  cursor: pointer;
}
:host {
  display: block;
}

.modal-row {
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.modal-row.open {
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1ch;
  background: rgba(0, 0, 0, 0.3);
}

.modal-row .modal-child {
  transform: translateY(100%);
  transition: transform 420ms ease;
  position: relative;
}
.modal-row .modal-child .modal-loading {
  display: none;
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
}
.modal-row .modal-child.loading .modal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-row .modal-child.loading .modal-loading svg {
  width: 24px;
  height: 24px;
}
.modal-row .modal-child.loading .modal-content {
  visibility: hidden;
}
.modal-row.open .modal-child {
  transform: translateY(0%);
}

.modal-child {
  padding: 16px 8px 24px;
  background-color: #fff;
  width: 100%;
}

.modal-close-button-wrap {
  padding-left: 8px;
}
.modal-close-button-wrap .modal-close-button {
  width: 32px;
  display: block;
  fill: var(--color-label);
  cursor: pointer;
}