:host {
  /**
   * @prop --background: Background of the toast
   * @prop --color: Color of the toast text
   *
   * @prop --border-color: Border color of the toast
   * @prop --border-radius: Border radius of the toast
   * @prop --border-width: Border width of the toast
   * @prop --border-style: Border style of the toast
   *
   * @prop --box-shadow: Box shadow of the toast
   *
   * @prop --min-width: Minimum width of the toast
   * @prop --width: Width of the toast
   * @prop --max-width: Maximum width of the toast
   *
   * @prop --min-height: Minimum height of the toast
   * @prop --height: Height of the toast
   * @prop --max-height: Maximum height of the toast
   *
   * @prop --button-color: Color of the button text
   */
  --border-width: 0;
  --border-style: none;
  --border-color: initial;
  --box-shadow: none;
  --min-width: auto;
  --width: auto;
  --min-height: auto;
  --height: auto;
  --max-height: auto;
  left: 0;
  top: 0;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  color: var(--color);
  font-family: var(--ion-font-family, inherit);
  contain: strict;
  z-index: 1000;
  pointer-events: none; }
  :host([dir=rtl]) + b {
    right: 0; }

:host(.overlay-hidden) {
  display: none; }

:host(.ion-color) {
  --button-color: inherit;
  color: var(--ion-color-contrast); }

:host(.ion-color) .toast-wrapper {
  background: var(--ion-color-base); }

.toast-wrapper {
  border-radius: var(--border-radius);
  width: var(--width);
  min-width: var(--min-width);
  max-width: var(--max-width);
  height: var(--height);
  min-height: var(--min-height);
  max-height: var(--max-height);
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  background: var(--background);
  box-shadow: var(--box-shadow); }

.toast-container {
  display: flex;
  align-items: center;
  pointer-events: auto;
  contain: content; }

.toast-button {
  color: var(--button-color); }

.toast-message {
  flex: 1;
  white-space: pre-wrap; }

:host {
  --background: var(--ion-color-step-50, #f2f2f2);
  --border-radius: 14px;
  --button-color: var(--ion-color-step-600, #666666);
  --color: var(--ion-color-step-850, #262626);
  --max-width: 700px;
  font-size: 14px; }

.toast-wrapper {
  left: 10px;
  right: 10px;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  display: block;
  position: absolute;
  z-index: 10; }
  @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
    .toast-wrapper {
      margin-left: unset;
      margin-right: unset;
      -webkit-margin-start: auto;
      margin-inline-start: auto;
      -webkit-margin-end: auto;
      margin-inline-end: auto; } }

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

.toast-wrapper.toast-top {
  transform: translate3d(0,  -100%,  0);
  top: 0; }

.toast-wrapper.toast-middle {
  opacity: .01; }

.toast-wrapper.toast-bottom {
  transform: translate3d(0,  100%,  0);
  bottom: 0; }

.toast-message {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 15px;
  padding-bottom: 15px; }
  @supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
    .toast-message {
      padding-left: unset;
      padding-right: unset;
      -webkit-padding-start: 15px;
      padding-inline-start: 15px;
      -webkit-padding-end: 15px;
      padding-inline-end: 15px; } }

.toast-button {
  font-size: 15px; }
