: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, #f9f9f9);
  --max-width: 270px;
  font-family: var(--ion-font-family, inherit);
  font-size: 14px; }

.alert-wrapper {
  border-radius: 13px;
  box-shadow: none;
  overflow: hidden; }

:host(.alert-translucent) .alert-wrapper {
  background: rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);
  backdrop-filter: saturate(180%) blur(20px); }

.alert-head {
  padding: 12px 16px 7px;
  text-align: center; }

.alert-title {
  margin-top: 8px;
  color: var(--ion-text-color, #000);
  font-size: 17px;
  font-weight: 600; }

.alert-sub-title {
  color: var(--ion-text-color-step-400, #666666);
  font-size: 14px; }

.alert-message,
.alert-input-group {
  padding: 0 16px 21px;
  color: var(--ion-text-color, #000);
  font-size: 13px;
  text-align: center; }

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

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

.alert-input {
  border-radius: 4px;
  margin-top: 10px;
  padding: 6px;
  border: 0.55px solid var(--ion-background-color-step-250, #bfbfbf);
  background-color: var(--ion-background-color, #fff);
  appearance: none; }
  .alert-input::placeholder {
    color: var(--ion-placeholder-text-color, #999);
    font-family: inherit;
    font-weight: inherit; }

.alert-radio-group,
.alert-checkbox-group {
  overscroll-behavior: contain;
  max-height: 240px;
  border-top: 0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch; }

.alert-tappable {
  display: flex;
  height: 44px;
  contain: strict; }

.alert-radio-label {
  padding: 13px;
  flex: 1;
  order: 0;
  color: var(--ion-text-color, #000);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; }

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

.alert-radio-icon {
  position: relative;
  order: 1;
  min-width: 30px; }

[aria-checked=true] .alert-radio-inner {
  left: 7px;
  top: -7px;
  position: absolute;
  width: 6px;
  height: 12px;
  transform: rotate(45deg);
  border-width: 2px;
  border-top-width: 0;
  border-left-width: 0;
  border-style: solid;
  border-color: var(--ion-color-primary, #3880ff); }

.alert-checkbox-label {
  padding: 13px;
  flex: 1;
  color: var(--ion-text-color, #000);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; }

.alert-checkbox-icon {
  border-radius: 50%;
  margin: 10px 6px 10px 16px;
  position: relative;
  width: 24px;
  height: 24px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--ion-item-border-color, #c8c7cc);
  background-color: var(--ion-item-background-color, var(--ion-background-color, #fff));
  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: 9px;
  top: 4px;
  position: absolute;
  width: 5px;
  height: 12px;
  transform: rotate(45deg);
  border-width: 1px;
  border-top-width: 0;
  border-left-width: 0;
  border-style: solid;
  border-color: var(--ion-background-color, #fff); }

.alert-button-group {
  margin-right: -0.55px;
  flex-wrap: wrap; }

.alert-button {
  margin: 0;
  border-radius: 0;
  flex: 1 1 auto;
  min-width: 50%;
  height: 44px;
  border-top: 0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);
  border-right: 0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);
  background-color: transparent;
  color: var(--ion-color-primary, #3880ff);
  font-size: 17px;
  overflow: hidden; }

.alert-button:last-child {
  border-right: 0;
  font-weight: bold; }

.alert-button.activated {
  background-color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1); }
