/* Prototype switcher and the shared bottom dock (proto/panel.js). */
.proto-switch{position:fixed;right:16px;bottom:16px;z-index:90;font-family:var(--sans);color:#1f2d36}
.proto-switch-toggle{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border:1px solid rgb(31 45 54/.14);border-radius:999px;background:rgb(255 255 255/.94);color:#1f2d36;font:600 12.5px var(--sans);box-shadow:0 8px 24px rgb(16 28 39/.14);cursor:pointer;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.proto-switch-toggle b{padding:2px 7px;border-radius:999px;background:#1f2d36;color:#fff;font-size:11.5px;letter-spacing:.06em}
.proto-switch-body{position:absolute;right:0;bottom:46px;width:300px;display:grid;gap:10px;padding:16px;border-radius:10px;background:#fff;box-shadow:0 18px 50px rgb(16 28 39/.22)}
.proto-switch-body[hidden]{display:none}
.proto-switch-body p{margin:0;font-size:12.5px;color:#63737d}
.proto-switch-body label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.proto-switch-body input{margin-top:3px;accent-color:#3b566b}
.proto-switch-body label span{display:grid;gap:2px;font-size:13.5px}
.proto-switch-body small{font-size:12px;color:#63737d}
.proto-switch-actions{display:flex;flex-wrap:wrap;gap:6px 14px;padding-top:10px;border-top:1px solid #dce4e9;font-size:12px}
.proto-switch-actions a,.proto-switch-actions button{padding:0;border:0;background:none;color:#3b566b;font:600 12px var(--sans);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

.proto-dock{position:fixed;left:50%;bottom:16px;z-index:80;transform:translateX(-50%);display:flex;gap:4px;padding:4px;border-radius:999px;background:#1f2d36;box-shadow:0 14px 40px rgb(16 28 39/.3);font-family:var(--sans)}
.proto-dock[hidden]{display:none}
.proto-dock button{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:#fff;font:600 13.5px var(--sans);white-space:nowrap;cursor:pointer}
.proto-dock button:hover{background:rgb(255 255 255/.12)}
.proto-dock button b{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#fff;color:#1f2d36;font-size:12px}
.proto-dock button small{font-size:12.5px;font-weight:500;color:rgb(255 255 255/.72)}

/* The back-to-top button moves up to make room for the switcher. */
body .bp-back-top{bottom:66px}

/* Dialogs of the prototype: compare, samples, «Мой ремонт», room editor */
.proto-dialog{width:min(980px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 30px 80px rgb(10 20 30/.35);font-family:var(--sans)}
.proto-dialog::backdrop{background:rgb(15 24 30/.45);backdrop-filter:blur(2px)}
.proto-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:var(--surface);border-bottom:1px solid var(--line)}
.proto-dialog-head h2{margin:0;font-size:22px;font-weight:500;letter-spacing:-.01em}
.proto-dialog-head p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.proto-close{flex:none;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.proto-dialog-body{padding:20px 24px 26px}
.proto-note{font-size:12px;color:var(--muted)}

@media (max-width:650px){
  .proto-switch{right:10px;bottom:10px}
  body .bp-back-top{bottom:56px}
  .proto-switch-toggle{height:30px}
  .proto-dock{bottom:10px;max-width:calc(100% - 20px)}
  .proto-dock button{height:38px;padding:0 12px;font-size:12.5px}
  .proto-dock button small{display:none}
  /* The product page has its own buy bar and buttons for compare, room and samples. */
  body[data-page=product] .proto-dock{display:none}
  .proto-switch-toggle{gap:0;padding:0 4px}
  .proto-switch-toggle{font-size:0}
  .proto-switch-toggle b{font-size:11px}
  body[data-page=product] .proto-switch{bottom:84px}
  body:has(.proto-dock:not([hidden])) .proto-switch{bottom:62px}
  .proto-dialog{width:100%;max-width:none;max-height:92dvh;margin:auto 0 0;border-radius:14px 14px 0 0}
  .proto-dialog-head{padding:16px}
  .proto-dialog-body{padding:16px 16px 24px}
}
