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

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

.toast-ios {
  font-family: $toast-ios-font-family;
}

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

  position: absolute;

  z-index: $z-index-overlay-wrapper;
  display: block;

  max-width: $toast-max-width;

  background: $toast-ios-background-color;
}

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

  backdrop-filter: $toast-ios-translucent-filter;
  -webkit-backdrop-filter: $toast-ios-translucent-filter;
}

.toast-ios .toast-wrapper.toast-top {
  @include transform(translate3d(0, -100%, 0));

  top: 0;
}

.toast-ios .toast-wrapper.toast-bottom {
  @include transform(translate3d(0, 100%, 0));

  bottom: 0;
}

.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);

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

  color: $toast-ios-title-color;
}

.toast-ios .toast-button {
  color: $toast-ios-button-color;
}
