@import "./action-sheet.vars";

// Action Sheet
// --------------------------------------------------

ion-action-sheet {
  @include position(0, null, null, 0);

  position: fixed;
  z-index: $z-index-overlay;
  display: block;

  width: $action-sheet-width;
  height: $action-sheet-width;

  touch-action: none;

  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
}

.action-sheet-wrapper {
  @include position(0, 0, 0, 0);
  @include margin(auto);
  @include transform(translate3d(0, 100%, 0));

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

  width: $action-sheet-width;
  max-width: $action-sheet-max-width;

  pointer-events: none;
}

.action-sheet-button {
  width: $action-sheet-width;

  border: 0;

  font-family: inherit;

  &:active,
  &:focus {
    outline: none;
  }
}

.action-sheet-button-inner {
  display: flex;

  flex-flow: row nowrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
}

.action-sheet-container {
  display: flex;

  flex-flow: column;

  justify-content: flex-end;

  height: 100%;
  max-height: 100%;
}

.action-sheet-group {
  overflow: scroll;

  flex-shrink: 2;

  pointer-events: all;

  overscroll-behavior: contain;
}

.action-sheet-group-cancel {
  overflow: hidden;

  flex-shrink: 0;
}
