@charset "utf-8";
@import (optional, reference) "var.less";
/*ax drawer*/
._drawer {
  --_drawer-sz-x-sm: min(40rem, 30%);
  --_drawer-sz-x-md: min(60rem, 50%);
  --_drawer-sz-x-lg: min(80rem, 70%);
  --_drawer-sz-x-max: calc(100% - var(--_sz-input));
  --_drawer-sz-y-sm: min(20rem, 30%);
  --_drawer-sz-y-md: min(40rem, 50%);
  --_drawer-sz-y-lg: min(60rem, 70%);
  --_drawer-sz-y-max: calc(100% - var(--_sz-input));
  --_drawer-w: var(--_w-drawer);
  height: 100%;
  width: 100%;
  position: fixed;
  left: -1000.0rem;
  top: 0;
  z-index: 810;
  &:where([restrict]) {
    position: absolute;
  }
  ._drawer-mask {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--_o-mask));
    opacity: 0;
    .v3-trans-all(var(--_dur-2), ease-out);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
  }
  ._drawer-wrap {
    width: var(--_drawer-w);
    background-color: var(--_c-stage);
    opacity: 1;
    .v3-trans-all(var(--_dur-2), ease-out);
    box-sizing: border-box;
    animation-duration: var(--_dur-3);
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    position: absolute;
    right: calc(-1*var(--_w-drawer));
    top: 0;
    z-index: 9;
  }
  ._drawer-padding {
    padding: var(--_p);
  }
  &:where([show]) {
    left: 0;
    top: 0;
  }
  &:where([show]) ._drawer-mask {
    opacity: 1;
  }
  &:where([size=sm][placement=left], [size=sm][placement=right]) ._drawer-wrap {
    width: var(--_drawer-sz-x-sm);
  }
  &:where([size=md][placement=left], [size=md][placement=right]) ._drawer-wrap {
    width: var(--_drawer-sz-x-md);
  }
  &:where([size=lg][placement=left], [size=lg][placement=right]) ._drawer-wrap {
    width: var(--_drawer-sz-x-lg);
  }
  &:where([size=max][placement=left], [size=max][placement=right]) ._drawer-wrap {
    width: var(--_drawer-sz-x-max);
  }
  &:where([size=sm][placement=top], [size=sm][placement=bottom]) ._drawer-wrap {
    height: var(--_drawer-sz-y-sm);
  }
  &:where([size=md][placement=top], [size=md][placement=bottom]) ._drawer-wrap {
    height: var(--_drawer-sz-y-md);
  }
  &:where([size=lg][placement=top], [size=lg][placement=bottom]) ._drawer-wrap {
    height: var(--_drawer-sz-y-lg);
  }
  &:where([size=max][placement=top], [size=max][placement=bottom]) ._drawer-wrap {
    height: var(--_drawer-sz-y-max);
  }
  &:where([placement=right]) ._drawer-wrap,
  &:where([placement=left]) ._drawer-wrap {
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
  }
  &:where([placement=right]) ._drawer-wrap {
    right: calc(-1*var(--_drawer-sz-x-sm));
  }
  &:where([placement=right][size=sm]) ._drawer-wrap {
    right: calc(-1*var(--_drawer-sz-x-sm));
  }
  &:where([placement=right][size=md]) ._drawer-wrap {
    right: calc(-1*var(--_drawer-sz-x-md));
  }
  &:where([placement=right][size=lg]) ._drawer-wrap {
    right: calc(-1*var(--_drawer-sz-x-lg));
  }
  &:where([placement=right][size=max]) ._drawer-wrap {
    right: calc(-1*var(--_drawer-sz-x-max));
  }
  &:where([placement=right][show]) ._drawer-wrap {
    right: 0;
  }
  &:where([placement=left]) ._drawer-wrap {
    left: calc(-1*var(--_drawer-sz-x-sm));
  }
  &:where([placement=left][size=sm]) ._drawer-wrap {
    left: calc(-1*var(--_drawer-sz-x-sm));
  }
  &:where([placement=left][size=md]) ._drawer-wrap {
    left: calc(-1*var(--_drawer-sz-x-md));
  }
  &:where([placement=left][size=lg]) ._drawer-wrap {
    left: calc(-1*var(--_drawer-sz-x-lg));
  }
  &:where([placement=left][size=max]) ._drawer-wrap {
    left: calc(-1*var(--_drawer-sz-x-max));
  }
  &:where([placement=left][show]) ._drawer-wrap {
    left: 0;
  }
  &:where([placement=top]) ._drawer-wrap {
    width: 100%;
    left: auto;
    right: auto;
    bottom: auto;
    transform: translateY(-100%);
  }
  /*   &:where([placement=top][size=sm]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-sm);
  }
  &:where([placement=top][size=md]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-md);
  }
  &:where([placement=top][size=lg]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-lg);
  } */
  /*   &:where([placement=top][size=max]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-max);
  } */
  &:where([placement=top][show]) ._drawer-wrap {
    transform: translateY(0);
  }
  &:where([placement=bottom]) ._drawer-wrap {
    width: 100%;
    left: auto;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
  }
  /*   &:where([placement=bottom][size=sm]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-sm);
  }
  &:where([placement=bottom][size=md]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-md);
  }
  &:where([placement=bottom][size=lg]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-lg);
  }
  &:where([placement=bottom][size=max]) ._drawer-wrap ._drawer-body {
    max-height: var(--_drawer-sz-y-max);
  } */
  &:where([placement=bottom][show]) ._drawer-wrap {
    transform: translateY(0);
  }
  ._drawer-body {
    flex: auto;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    overscroll-behavior: contain;
  }
  &[placement=right] ._drawer-body,
  &[placement=left] ._drawer-body {
    height: 0;
  }
  ._drawer-cont {
    overflow: hidden;
  }
  ._drawer-head {
    font-size: var(--_fs-body);
    font-weight: bold;
    line-height: var(--_sz-input);
    padding: 0 var(--_p);
    margin: 0;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
  }
  ._drawer-foot {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
  }
  ._box-tools {
    pointer-events: auto;
    opacity: 0;
    padding: calc((var(--_sz-input) - var(--_sz-list))/2);
    position: absolute;
    [role="icon"] {
      font-size: var(--_fs-ignore);
    }
    >* {
      color: var(--_c-stage);
      width: var(--_sz-list);
      aspect-ratio: 1/1;
      line-height: var(--_sz-list);
      padding: 0;
    }
  }
  &:where(:has(._drawer-mask)) ._box-tools {
    >*[role="close"]:hover {
      color: var(--_c-error);
    }
  }
  &[placement=right] ._box-tools {
    top: 0;
    left: 0;
    transform: translateX(-100%);
    flex-direction: column;
  }
  &[placement=left] ._box-tools {
    top: 0;
    right: 0;
    transform: translateX(100%);
    flex-direction: column;
  }
  &[placement=top] ._box-tools {
    right: 0;
    bottom: 0;
    transform: translateY(100%);
  }
  &[placement=bottom] ._box-tools {
    right: 0;
    top: 0;
    transform: translateY(-100%);
  }
  &[show] ._box-tools {
    opacity: 1;
  }
  &[type="image"] ._drawer-cont,
  &[type="video"] ._drawer-cont,
  &[type="audio"] ._drawer-cont {
    text-align: center;
  }
  [class*="_box-"] img,
  [class*="_box-"] video,
  [class*="_box-"] audio {
    max-width: 100%;
  }
  [class*="_box-"] video,
  [class*="_box-"] audio {
    width: 100%;
    display: block;
  }
  iframe {
    min-height: 40rem;
  }
  ._menu {
    width: 100%;
  }
  &:where([type="iframe"]) {
    &[size] ._drawer-padding {
      flex: auto;
      display: flex;
      flex-direction: column;
    }
    &[size] ._drawer-cont {
      display: flex;
      flex-direction: column;
      flex: auto;
      [class*="_box-"] {
        flex: auto;
        iframe {
          min-height: auto;
          height: 100%;
        }
      }
    }
  }
  &:not(:has(._drawer-mask)) {
    pointer-events: none;
    ._box-tools>* {
      background-color: rgba(0, 0, 0, var(--_o-disabled));
      border-radius: 100%;
      &:where([role="close"]):hover {
        background-color: var(--_c-error);
      }
    }
    ._drawer-wrap {
      .shadow-dk;
    }
  }
}
@media screen and (max-width: @ceil-sm) {
  ._drawer {
    --_drawer-sz-x-sm: 70%;
    --_drawer-sz-x-md: 70%;
    --_drawer-sz-x-lg: 70%;
  }
}
