:host {
  --min-width: 250px;
  --max-height: 90%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  contain: strict;
  touch-action: none;
  user-select: none;
  z-index: 1000; }

:host(.alert-top) {
  padding-top: 50px;
  align-items: flex-start; }

.alert-wrapper {
  display: flex;
  flex-direction: column;
  min-width: var(--min-width);
  max-width: var(--max-width);
  max-height: var(--max-height);
  background: var(--background);
  contain: content;
  opacity: 0;
  z-index: 10; }

.alert-title {
  margin: 0;
  padding: 0; }

.alert-sub-title {
  margin: 5px 0 0;
  padding: 0;
  font-weight: normal; }

.alert-message {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overflow-y: scroll;
  overscroll-behavior-y: contain; }

.alert-message::-webkit-scrollbar {
  display: none; }

.alert-input {
  padding: 10px 0;
  width: 100%;
  border: 0;
  background: inherit;
  font: inherit;
  box-sizing: border-box; }

.alert-button-group {
  display: flex;
  flex-direction: row;
  width: 100%; }

.alert-button-group-vertical {
  flex-direction: column;
  flex-wrap: nowrap; }

.alert-button {
  margin: 0;
  display: block;
  border: 0;
  font-size: 14px;
  line-height: 20px;
  z-index: 0; }

.alert-button-inner {
  display: flex;
  flex-flow: row nowrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%; }

.alert-tappable {
  margin: 0;
  padding: 0;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: inherit;
  line-height: initial;
  text-align: start;
  appearance: none; }

.alert-button:active, .alert-button:focus,
.alert-checkbox:active,
.alert-checkbox:focus,
.alert-input:active,
.alert-input:focus,
.alert-radio:active,
.alert-radio:focus {
  outline: none; }

.alert-radio-icon,
.alert-checkbox-icon,
.alert-checkbox-inner {
  box-sizing: border-box; }

:host {
  --background: var(--ion-overlay-background-color, #fafafa);
  --max-width: 280px;
  font-family: var(--ion-font-family, inherit);
  font-size: 14px; }

.alert-wrapper {
  border-radius: 2px;
  box-shadow: 0 16px 20px rgba(0, 0, 0, 0.4); }

.alert-head {
  padding: 20px 23px 15px;
  text-align: start; }

.alert-title {
  color: var(--ion-text-color, #000);
  font-size: 20px;
  font-weight: 500; }

.alert-sub-title {
  color: var(--ion-text-color, #000);
  font-size: 16px; }

.alert-message,
.alert-input-group {
  padding: 0 24px 24px;
  color: var(--ion-text-color-step-450, #737373); }

.alert-message {
  max-height: 240px;
  font-size: 15px; }

.alert-message:empty {
  padding: 0; }

.alert-input {
  margin: 5px 0;
  border-bottom: 1px solid var(--ion-background-color-step-150, #d9d9d9);
  color: var(--ion-text-color, #000); }
  .alert-input::placeholder {
    color: var(--ion-placeholder-text-color, #999);
    font-family: inherit;
    font-weight: inherit; }

.alert-input:focus {
  margin-bottom: 4px;
  border-bottom: 2px solid var(--ion-color-primary, #3880ff); }

.alert-radio-group,
.alert-checkbox-group {
  position: relative;
  max-height: 240px;
  border-top: 1px solid var(--ion-background-color-step-150, #d9d9d9);
  border-bottom: 1px solid var(--ion-background-color-step-150, #d9d9d9);
  overflow: auto; }

.alert-tappable {
  display: flex;
  position: relative;
  height: 44px;
  contain: strict;
  overflow: hidden; }

.alert-radio-label {
  padding: 13px 26px 13px 52px;
  flex: 1;
  color: var(--ion-text-color-step-150, #262626);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; }

.alert-radio-icon {
  left: 26px;
  top: 0;
  border-radius: 50%;
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
  border-width: 2px;
  border-style: solid;
  border-color: var(--ion-text-color-step-450, #737373); }

.alert-radio-inner {
  left: 3px;
  top: 3px;
  border-radius: 50%;
  position: absolute;
  width: 10px;
  height: 10px;
  transform: scale3d(0, 0, 0);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--ion-color-primary, #3880ff); }

[aria-checked=true] .alert-radio-label {
  color: var(--ion-text-color-step-150, #262626); }

[aria-checked=true] .alert-radio-icon {
  border-color: var(--ion-color-primary, #3880ff); }

[aria-checked=true] .alert-radio-inner {
  transform: scale3d(1, 1, 1); }

.alert-checkbox-label {
  padding: 13px 26px 13px 53px;
  flex: 1;
  color: var(--ion-text-color-step-150, #262626);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; }

.alert-checkbox-icon {
  left: 26px;
  top: 0;
  border-radius: 2px;
  position: relative;
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-style: solid;
  border-color: var(--ion-text-color-step-450, #737373);
  contain: strict; }

[aria-checked=true] .alert-checkbox-icon {
  border-color: var(--ion-color-primary, #3880ff);
  background-color: var(--ion-color-primary, #3880ff); }

[aria-checked=true] .alert-checkbox-inner {
  left: 3px;
  top: 0;
  position: absolute;
  width: 6px;
  height: 10px;
  transform: rotate(45deg);
  border-width: 2px;
  border-top-width: 0;
  border-left-width: 0;
  border-style: solid;
  border-color: var(--ion-color-primary-contrast, #fff); }

.alert-button-group {
  padding: 5px 12px 7px 24px;
  box-sizing: border-box;
  flex-wrap: wrap-reverse;
  justify-content: flex-end; }

.alert-button {
  border-radius: 2px;
  margin: 0 8px 0 0;
  padding: 10px;
  position: relative;
  background-color: transparent;
  color: var(--ion-color-primary, #3880ff);
  font-weight: 500;
  text-align: end;
  text-transform: uppercase;
  overflow: hidden; }

.alert-button.activated {
  background-color: var(--ion-background-color-step-400, #999999); }

.alert-button-inner {
  justify-content: flex-end; }
