@use "../mixins/mixins" as *;
@use "../mixins/function" as *;
@use "../common/var.scss" as *;

@include b(layer) {
  position: absolute;
  color: getCssVar("color", "text-1");
  box-shadow: getCssVar("shadow", "1");
  display: flex;
  flex-direction: column;
  vertical-align: middle;
  background-color: getCssVar("color", "bg-3");
  border: 1px solid getCssVar("color", "fill-3");
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
  overflow: hidden;
  pointer-events: auto;
  box-sizing: border-box;
  @include when(max) {
    inset: 0;
    height: 100%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  @include when(min) {
    inset: 0;
    height: 0;
    width: 0;
    border-radius: 0;
    box-shadow: none;
  }
  @include e(container) {
    position: fixed;
    inset: 0;
    pointer-events: none;
  }
  @include e(wrapper) {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  @include e(mask) {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(3px);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
  }
  @include e(header) {
    display: flex;
    align-items: center;
    height: 40px;
    flex-shrink: 0;
    border-bottom: 1px solid getCssVar("color", "fill-3");
  }
  @include e(header-icon) {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
  }
  @include e(title) {
    font-size: getCssVar("font-size", "medium");
    font-weight: 500;
    line-height: 1.5715;
    flex: 1;
    padding: 0 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  @include e(body) {
    flex: 1;
    overflow: hidden;
  }
  @include e(content) {
    overflow: hidden;
  }
  @include e(footer) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    padding: 0 20px;
    gap: 8px;
    height: 40px;
    border-top: 1px solid getCssVar("color", "fill-3");
  }
}
