@import "./toast";
@import "./toast.ios.vars";

// iOS Toast
// --------------------------------------------------

.toast-ios {
  --background: #{$toast-ios-background-color};
  --button-color: #{$toast-ios-button-color};
  --color: #{$toast-ios-title-color};

  font-size: $toast-ios-title-font-size;
}

.toast-ios .toast-wrapper {
  @include position-horizontal(10px, 10px);
  @include margin(auto);
  @include border-radius($toast-ios-border-radius);

  display: block;
  position: absolute;

  max-width: $toast-max-width;

  z-index: $z-index-overlay-wrapper;
}

.toast-translucent-ios .toast-wrapper {
  background: $toast-ios-translucent-background-color;
  backdrop-filter: $toast-ios-translucent-filter;
}

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

.toast-ios .toast-message {
  @include padding($toast-ios-title-padding-top, $toast-ios-title-padding-end, $toast-ios-title-padding-bottom, $toast-ios-title-padding-start);
}

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