@use '@zywave/zui-base-styles/src/variables' as *;

:host {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-top: 20px;

  @media (min-width: $bp-m) {
    margin-top: 40px;
  }

  @media (min-width: $bp-l) {
    margin-top: 60px;
  }

  ::slotted(zui-button) {
    margin-left: 10px;
  }

  ::slotted(.exit) {
    display: none;
    margin-right: auto;

    @media (max-width: $bp-m) {
      display: block;
    }
  }
}

:host(.sticky) {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  max-width: 1440px;
  z-index: z(default);
  justify-content: flex-end;
  margin: 0 auto;
  padding: 15px 20px;

  &::before {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    content: '';
    width: 100%;
    height: 73px;
    background: var(--zui-gray-100);
    border-top: 1px solid var(--zui-gray-200);

    @media (max-width: $bp-m) {
      height: 62px;
    }
  }

  @media (max-width: $bp-m) {
    padding: 10px;
  }
}
