/* SLICE-MOBILE-BOTTOM-SHEET-PRIMITIVE-V1 · phone-only */

@media (max-width: 620px) {

  body.lbs-scroll-lock {
    overflow: hidden;
  }

  /* display:flex always — visibility toggles avoid flex/none oscillation + zero box */
  .lbs-root {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9800;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    visibility: hidden;
    pointer-events: none;
  }

  .lbs-root.lbs-active.lbs-open,
  .lbs-root.lbs-closing {
    visibility: visible;
  }

  .lbs-root.lbs-active.lbs-open {
    pointer-events: auto;
  }

  .lbs-root.lbs-closing {
    pointer-events: none;
  }

  .lbs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .lbs-root.lbs-open .lbs-backdrop {
    opacity: 1;
  }

  .lbs-sheet {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    margin: 0 auto;
    width: calc(100% - 24px);
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(243, 230, 220, 0.12);
    background: rgba(20, 15, 20, 0.92);
    background: rgba(20, 15, 20, 0.78);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow:
      0 -18px 58px rgba(0, 0, 0, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
  }

  .lbs-sheet.lbs-dragging {
    transition: none;
  }

  .lbs-handle {
    flex: 0 0 auto;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
  }

  .lbs-handle::before {
    content: "";
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .lbs-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px 14px;
    cursor: grab;
    touch-action: none;
  }

  .lbs-title {
    margin: 0;
    font-family: var(--laouts-font-serif, "Fraunces", Georgia, serif);
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--laouts-bone, #f3e6dc);
  }

  .lbs-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 18px calc(16px + env(safe-area-inset-bottom, 0px));
    font-family: var(--laouts-font-sans, Inter, system-ui, sans-serif);
    font-size: 16px;
    line-height: 1.5;
    color: var(--laouts-bone, #f3e6dc);
  }

  .lbs-body p {
    margin: 0 0 12px;
  }
}
