@use "../base/var";
@use "../base/const";
@use "../base/color";

[part~="wy-footerbar"] {
  --wy-component-background-color: #{color.token(--wy-surface-container)};
  --wy-component-color: #{color.token(--wy-on-surface)};

  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: const.$zindex-sticky;

  &::after {
    content: "";
    background-color: var(--wy-component-background-color);
    color: var(--wy-component-color);
    //box-shadow: #{color.token(--wy-outline-variant)} 0px #{var.default(--wy-border)} 0px 0px inset;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 100%;
    z-index: -1;

    //@include backdrop.filter;
  }
}

[part~="wy-footerbar-sticky"] {
  position: sticky;
}

[part~="wy-footerbar-floating"] {
  --wy-component-border-radius: #{var.default(--wy-border-radius-outer)};
  border-radius: var(--wy-component-border-radius);
  &::after {
    border-radius: var(--wy-component-border-radius);
  }
}
