
.lbw-local-tryon-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lbw-local-tryon-panel {
  width: min(1520px, 100%);
  height: min(94vh, 980px);
  max-height: 94vh;
  background: #111;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  position: relative;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
}

.lbw-local-tryon-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(380px, 29vw, 450px);
  min-height: 0;
  height: 100%;
}

.lbw-local-tryon-stage-wrap {
  min-width: 0;
  min-height: 0;
  background: #000;
  padding: 20px 20px 0 20px;
}

.lbw-local-tryon-stage-head {
  padding: 0;
}

.lbw-local-tryon-stage-head--overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 56px;
  z-index: 2;
  pointer-events: none;
}

.lbw-local-tryon-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 3;
  transition: background-color .16s ease, box-shadow .16s ease, transform .08s ease;
}

.lbw-local-tryon-close:hover { background: rgba(255,255,255,.22); }
.lbw-local-tryon-close:focus,
.lbw-local-tryon-close:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.lbw-local-tryon-close:active { transform: translateY(1px) scale(.97); }

.lbw-local-tryon-menu-toggle,
.lbw-local-tryon-side-close,
.lbw-local-tryon-side-backdrop,
.lbw-local-tryon-side-head {
  display: none;
}

.lbw-local-tryon-menu-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,10,.72);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lbw-local-tryon-side-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.46);
  z-index: 2;
}

.lbw-local-tryon-side-head {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.lbw-local-tryon-side-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.lbw-local-tryon-side-close {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: #202020;
  color: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lbw-local-tryon-stage {
  position: relative;
  background: #000;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
}

.lbw-local-tryon-viewport {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  transition: transform 140ms linear;
  will-change: transform;
}

.lbw-local-tryon-stage video,
.lbw-local-tryon-stage canvas,
.lbw-local-tryon-stage .lbw-local-tryon-selfie {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.lbw-local-tryon-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 2;
}

.lbw-local-tryon-side {
  padding: 12px 14px 14px;
  background: #171717;
  overflow: auto;
  min-height: 0;
  min-width: 0;
}

.lbw-local-tryon-note {
  display: none;
}

.lbw-local-tryon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.lbw-local-tryon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(12,12,12,.66);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lbw-local-tryon-look-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.lbw-local-tryon-back {
  appearance:none;
  border:1px solid rgba(37,88,171,.22);
  background:#fff;
  color:#2558ab;
  border-radius:999px;
  padding:8px 14px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .08s ease, color .16s ease;
}

.lbw-local-tryon-back:hover { background:#f3f7ff; border-color:rgba(37,88,171,.34); }
.lbw-local-tryon-back:focus,
.lbw-local-tryon-back:focus-visible { outline:none; box-shadow:0 0 0 2px rgba(37,88,171,.18); }
.lbw-local-tryon-back:active { transform: translateY(1px) scale(.985); background:#eaf1ff; }

body.lbw-local-tryon-look-open .lbw-local-tryon-modal:not(.lbw-local-tryon-look-modal) { display:none !important; }

.lbw-local-tryon-look-panel {
  width: min(1480px, 100%);
  height: min(94vh, 980px);
  max-height: 94vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.lbw-local-tryon-look-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 430px);
  min-height: 0;
  height: 100%;
}

.lbw-local-tryon-look-stage-wrap {
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: #000;
  padding: 20px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}

.lbw-local-tryon-look-body {
  padding-top: 18px;
  min-height: 0;
}

.lbw-local-tryon-look-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: none;
  border-radius: 18px;
  margin-bottom: 0;
}

.lbw-local-tryon-look-stage .lbw-local-tryon-viewport { border-radius: 18px; overflow: hidden; }

.lbw-local-tryon-look-footer {
  background: #000;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lbw-local-tryon-look-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lbw-local-tryon-look-footer .lbw-local-tryon-status {
  position: static;
  left: auto;
  bottom: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
}


.lbw-local-tryon-chip-removable { padding-right: 6px; }

.lbw-local-tryon-chip-remove {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .16s ease, box-shadow .16s ease, transform .08s ease;
}

.lbw-local-tryon-chip-remove:hover { background: rgba(255,255,255,.22); }
.lbw-local-tryon-chip-remove:focus,
.lbw-local-tryon-chip-remove:focus-visible { outline:none; box-shadow:0 0 0 2px rgba(255,255,255,.16); }

@media (max-width: 980px) {
  .lbw-local-tryon-modal {
    padding: 0;
  }
  .lbw-local-tryon-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .lbw-local-tryon-main {
    grid-template-columns: 1fr;
    min-height: 0;
    position: relative;
  }
  .lbw-local-tryon-menu-toggle,
  .lbw-local-tryon-side-head {
    display: inline-flex;
  }
  .lbw-local-tryon-side-head {
    display: flex;
  }
  .lbw-local-tryon-stage-wrap {
    background: #111;
    padding: 60px 0 0 0;
    min-height: 0;
  }
  .lbw-local-tryon-stage-head--overlay {
    top: 60px;
    left: 12px;
    right: 56px;
  }
  .lbw-local-tryon-stage {
    margin: 0;
    min-height: 0;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  .lbw-local-tryon-side {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 86vw);
    max-width: 86vw;
    z-index: 3;
    transform: translateX(-105%);
    transition: transform .18s ease;
    border-right: 1px solid rgba(255,255,255,.08);
    overflow: auto;
    max-height: none;
    padding: 62px 14px 18px;
  }
  .lbw-local-tryon-modal.is-menu-open .lbw-local-tryon-side {
    transform: translateX(0);
  }
  .lbw-local-tryon-modal.is-menu-open .lbw-local-tryon-side-backdrop {
    display: block;
  }
  .lbw-local-tryon-options {
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: #111;
  }
}

@media (max-width: 980px) {
  .lbw-local-tryon-look-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .lbw-local-tryon-look-main {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 0;
    height: 100%;
  }

  .lbw-local-tryon-look-stage-wrap {
    background: #111;
    padding: 60px 0 0 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .lbw-local-tryon-look-stage {
    border-radius: 0;
    height: 100%;
    min-height: 0;
  }

  .lbw-local-tryon-look-stage .lbw-local-tryon-viewport {
    border-radius: 0;
  }

  .lbw-local-tryon-look-footer {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .lbw-local-tryon-look-meta {
    gap: 8px;
  }

  .lbw-local-tryon-look-body {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 86vw);
    max-width: 86vw;
    z-index: 3;
    transform: translateX(-105%);
    transition: transform .18s ease;
    border-right: 1px solid rgba(255,255,255,.08);
    overflow: auto;
    max-height: none;
    padding: 62px 14px 18px;
    background: #171717;
  }

  .lbw-local-tryon-look-modal.is-menu-open .lbw-local-tryon-look-body {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .lbw-local-tryon-modal { padding: 0; }
  .lbw-local-tryon-panel { border-radius: 0; }
  .lbw-local-tryon-stage-wrap { padding-top: 56px; }
  .lbw-local-tryon-stage-head--overlay {
    top: 56px;
    left: 10px;
    right: 52px;
  }
  .lbw-local-tryon-menu-toggle {
    top: 10px;
    left: 10px;
    padding: 9px 12px;
    font-size: 12px;
  }
}
