






















:root {
  


  --z-chrome: 800;
  --z-backdrop: 4000;
  --z-sheet: 4010;
  --z-dialog: 4100;
  --z-toast: 4200;
  --z-gate: 9000;
  --z-lightbox: 9500;
  --sheet-w: 480px;
  --sheet-w-wide: 620px;
  



  --sheet-w-xl: 760px;
}

.vs-root {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  display: flex; justify-content: flex-end;      
  pointer-events: none;
  font-family: 'Heebo', system-ui, sans-serif;
}
.vs-root.is-dialog { align-items: center; justify-content: center; z-index: var(--z-dialog); }
.vs-root.open { pointer-events: auto; }



















.vs-ov { position: absolute; inset: 0; background: rgba(0,0,0,0);
         transition: background .2s ease; z-index: 0; }
.vs-root.is-dialog.open .vs-ov { background: rgba(0,0,0,.35); }

.vs-panel {
  position: relative; z-index: 1;
  width: var(--sheet-w); max-width: 92vw; height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.22);       
  display: flex; flex-direction: column; min-height: 0;
  transform: translateX(-100%);
  transition: transform .25s ease-out;
  direction: rtl;
}
.vs-root.wide .vs-panel { width: var(--sheet-w-wide); }
.vs-root.xl   .vs-panel { width: var(--sheet-w-xl); }
.vs-root.open .vs-panel { transform: translateX(0); }

.vs-head { flex: none; display: flex; align-items: flex-start; gap: 12px;
           padding: 16px 18px 14px; border-bottom: 1px solid #e3ddd1;
           background: linear-gradient(180deg, #f7f4ed, #fff); }
.vs-head h2 { margin: 0; font-size: 17px; font-weight: 800; color: #0b3d2e; line-height: 1.3; }
.vs-head p  { margin: 3px 0 0; font-size: 12.5px; color: #5C5648; line-height: 1.5; }
.vs-head-txt { flex: 1; min-width: 0; }
.vs-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%;
        background: rgba(0,0,0,.06); font-size: 20px; line-height: 1; cursor: pointer;
        color: #1f1d18; order: -1; }
.vs-x:hover { background: rgba(0,0,0,.12); }







.vs-x.float { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3;
  width: 40px; height: 40px; font-size: 22px; font-weight: 700;
  background: #fff; color: #12281f;
  box-shadow: 0 2px 12px rgba(0,0,0,.34), 0 0 0 1px rgba(0,0,0,.10) inset; }
.vs-x.float:hover { background: #f3f0e6; }
@media (max-width: 780px) { .vs-x.float { width: 44px; height: 44px; font-size: 24px; } }








.vs-root .vs-body > .hero > .crumbs { padding-inline-start: 56px; }
@media (max-width: 780px) { .vs-root .vs-body > .hero > .crumbs { padding-inline-start: 60px; } }




.vs-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
           padding: 14px 18px 18px; font-size: 13.5px; color: #1f1d18; line-height: 1.65;
           -webkit-overflow-scrolling: touch; }
.vs-foot { flex: none; display: flex; gap: 8px;
           padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
           border-top: 1px solid #e3ddd1; background: #fff;
           box-shadow: 0 -3px 10px rgba(0,0,0,.05); }






.vs-panel > .vs-adopted {
  position: static !important;
  inset: auto !important;
  width: 100% !important; max-width: none !important; min-width: 0 !important;
  height: 100% !important; max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: auto !important;
  transform: none !important;
  







  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  










  opacity: 1 !important;
  visibility: visible !important;
}


.vs-root.is-dialog .vs-panel {
  width: 400px; max-width: calc(100vw - 32px); height: auto; max-height: 80vh;
  border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.3);
  transform: translateY(14px) scale(.97); opacity: 0;
  transition: transform .18s ease-out, opacity .18s ease-out;
}
.vs-root.is-dialog.open .vs-panel { transform: none; opacity: 1; }
.vs-root.is-dialog .vs-head { border-radius: 14px 14px 0 0; }
.vs-root.is-dialog .vs-foot { border-radius: 0 0 14px 14px; justify-content: flex-start; }

.vs-btn { border: 0; border-radius: 9px; padding: 11px 18px; font: inherit; font-size: 13.5px;
          font-weight: 800; cursor: pointer; min-height: 44px; }
.vs-btn.p { background: #0F6E56; color: #fff; }
.vs-btn.s { background: #fff; border: 1.5px solid #d6cfbe; color: #5C5648; }
.vs-btn.d { background: #b42318; color: #fff; }






@media (max-width: 780px) {
  .vs-root { align-items: stretch; justify-content: stretch; }
  .vs-panel { width: 100%; max-width: 100%; height: 100%; height: 100dvh;
              border-radius: 0; transform: translateY(100%); box-shadow: none; }
  .vs-root.open .vs-panel { transform: translateY(0); }
  .vs-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .vs-x { width: 44px; height: 44px; font-size: 24px; background: rgba(0,0,0,.08); }
  
  .vs-root.is-dialog { align-items: center; justify-content: center; }
  .vs-root.is-dialog .vs-panel { width: 400px; max-width: calc(100vw - 28px);
    height: auto; max-height: 80vh; border-radius: 14px;
    transform: translateY(14px) scale(.97); }
  .vs-root.is-dialog.open .vs-panel { transform: none; }
  .vs-foot .vs-btn { flex: 1; }
}








body.vs-locked { overflow: hidden;
  border-left: var(--vs-sbl, 0px) solid transparent;
  border-right: var(--vs-sbr, 0px) solid transparent; }


.vs-toast { position: fixed; z-index: var(--z-toast); inset-inline: 0;
            bottom: calc(18px + env(safe-area-inset-bottom));
            display: flex; justify-content: center; pointer-events: none;
            font-family: 'Heebo', system-ui, sans-serif; }
.vs-toast > div { background: #1f1d18; color: #fff; border-radius: 11px; padding: 12px 18px;
                  font-size: 13.5px; font-weight: 600; max-width: min(520px, 92vw);
                  box-shadow: 0 8px 26px rgba(0,0,0,.35);
                  transform: translateY(10px); opacity: 0; transition: .2s ease; }
.vs-toast.on > div { transform: none; opacity: 1; }
.vs-toast > div.err { background: #b42318; }




@media (prefers-reduced-motion: reduce) {
  .vs-panel, .vs-ov, .vs-toast > div { transition: none !important; }
}
