/* The phone dock, shared (phone-dock.js; 2026-11-13, the bead banner first - Rizwan: "streamline this the same way I
   streamlined the table signs and the maps ... edit options on the screen so there's not much scrolling"): the stage
   fills the screen under the bar, the buttons stand over its bottom edge, a tap lifts that one choice into a
   see-through sheet above them and the piece stands in what is left, changing as they tap. The signs' own dock
   (data-objects/object.css .pdp-dock) is the pattern and the class names are kept, so the two look the same; the
   maps' place-dock is the original. phone-dock.js sets --sign-stage (the screen less the bar, the crumb and the buy
   bar) on the root and --sign-dock (the dock's own height) on the stage. The desktop keeps the page as it is. */
.pdp-dock[hidden], .pdp-dock-sheet[hidden] { display: none; }
@media (max-width: 899px) {
  .pdp-dock-on #result-panel { position: relative; height: var(--sign-stage, calc(100svh - 230px)); min-height: 380px; box-sizing: border-box; overflow: hidden; }
  .pdp-dock-on #result-panel model-viewer, .pdp-dock-on #result-panel .model-viewer-el, .pdp-dock-on #result-panel #model-viewer {
    height: calc(var(--sign-stage, calc(100svh - 230px)) - var(--sign-dock, 80px) - 22px); min-height: 140px; transition: height .22s ease-out;
  }
  .pdp-dock-on #result-panel .spec-line, .pdp-dock-on #result-panel .result-summary, .pdp-dock-on #result-panel .lp-status { display: none; }
  /* the page's own rows live in the sheet now (the page says which, .pd-away); the buy bar rides the bottom of the screen */
  .pdp-dock-on .pd-away:not(.in-dock) { display: none !important; }
  .pdp-dock-on .pd-buy:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; margin: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
  /* the buy bar, slim (Rizwan, 2026-11-13: "the bottom add-to-cart stuff is taking up too much space"): one row - the count
     and the button. The "different name on each" link, the volume table, the guest note, a heading or a line of prose wait
     below the stage; the desktop keeps them. */
  .pdp-dock-on .pd-buy:not([hidden]) { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .pdp-dock-on .pd-buy .qb { margin: 0; }
  .pdp-dock-on .pd-buy .qb-modes, .pdp-dock-on .pd-buy .qb-details, .pdp-dock-on .pd-buy .qb-price-line, .pdp-dock-on .pd-buy .gc-note,
  .pdp-dock-on .pd-buy .panel-title, .pdp-dock-on .pd-buy .panel-subtitle, .pdp-dock-on .pd-buy .field-hint, .pdp-dock-on .pd-buy .feedback-text:empty,
  .pdp-dock-on .pd-buy .qb-line, .pdp-dock-on .pd-buy .qb-total, .pdp-dock-on .pd-buy .qb-next, .pdp-dock-on .pd-buy .qb-names { display: none; }
  /* typing in the sheet: the keyboard covers the bottom, so the sheet rides under the top bar meanwhile */
  .pdp-dock-kb .pdp-dock { position: fixed; top: var(--pin-top, 56px); bottom: auto; z-index: 1000; border-radius: 0 0 18px 18px; }
  .pdp-dock-kb .pdp-dock-sheet { max-height: 46vh; animation: none; }
  /* a page in tap-edit's studio (tap-edit.css body.tapedit-studio: the model fills the panel, a legend and a CTA ride its
     right edge, every other child of the panel is hidden) with the dock on (the plaque, 2026-11-13): the dock shows, the
     stage is the dock's, the piece stands above the dock, and the studio's own legend and CTA step aside - the buttons
     do what they did */
  body.tapedit-studio.pdp-dock-on .ph-editor > #result-panel { height: var(--sign-stage, calc(100svh - 230px)) !important; }   /* the studio sets its height inline */
  body.tapedit-studio.pdp-dock-on .ph-editor > #result-panel > .pdp-dock { display: flex; }
  body.tapedit-studio.pdp-dock-on .lp-stage { bottom: var(--sign-dock, 80px); transition: bottom .22s ease-out; }
  body.tapedit-studio.pdp-dock-on .tapedit-legend, body.tapedit-studio.pdp-dock-on .tapedit-cta { display: none; }
}
.pdp-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; pointer-events: none; }
.pdp-dock > * { pointer-events: auto; }
/* one even row - every button in sight on the narrowest phone; one fixed height, so a note never moves the row */
.pdp-dock-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; padding: 10px 8px 12px; }
.pdp-dock-tab {
  min-width: 0; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 3px;
  border: 0; border-radius: 14px; background: rgba(255, 255, 255, .95); color: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16); font: inherit; text-align: center; cursor: pointer;
}
.pdp-dock-tab svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pdp-dock-swatch { width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.pdp-dock-tab[aria-pressed="true"] .pdp-dock-swatch { box-shadow: 0 0 0 1.5px #fff; }
.pdp-dock-tab-text { display: flex; flex-direction: column; min-width: 0; max-width: 100%; line-height: 1.15; }
.pdp-dock-tab-text strong, .pdp-dock-tab-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-dock-tab-text strong { font-size: 12px; font-weight: 600; }
.pdp-dock-tab-text small { min-height: 12px; font-size: 10.5px; opacity: .65; }
.pdp-dock-tab[aria-pressed="true"] { background: #111; color: #fff; }
/* the sheet: a little see-through, so the piece reads on behind it */
.pdp-dock-open .pdp-dock {
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--color-text-primary, #111); border-radius: 18px 18px 15px 15px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .14);
}
.pdp-dock-open .pdp-dock-tab:not([aria-pressed="true"]) { background: rgba(0, 0, 0, .05); box-shadow: none; }
@keyframes pdp-dock-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.pdp-dock-sheet {
  max-height: calc(var(--sign-stage, 520px) * .62); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 14px 2px; border-bottom: 1px solid rgba(0, 0, 0, .08); animation: pdp-dock-rise 220ms ease-out;
}
@media (prefers-reduced-motion: reduce) { .pdp-dock-sheet { animation: none; } }
.pdp-dock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.pdp-dock-title { font-size: 14px; font-weight: 600; }
.pdp-dock-close { min-height: 32px; padding: 0 12px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
/* a page's row at home in the sheet: the sheet's head names the one it is about, so that row's own label goes;
   the others keep theirs, as a list */
.pdp-dock-body > .in-dock { margin: 0 0 12px; }
.pdp-dock-body > .in-dock-open > .field-label, .pdp-dock-body > .in-dock-open > label:first-child { display: none; }
.pdp-dock-body > .in-dock > .field-label { font-size: 12px; margin: 0 0 6px; }
.pdp-dock-body .field-hint, .pdp-dock-body .ph-example-hint { display: none; }
@media (prefers-color-scheme: dark) {
  .pdp-dock-tab { background: rgba(44, 45, 48, .95); color: #f2f2f0; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
  .pdp-dock-tab[aria-pressed="true"] { background: #f2f2f0; color: #111; }
  .pdp-dock-tab[aria-pressed="true"] .pdp-dock-swatch { box-shadow: 0 0 0 1.5px #111; }
  .pdp-dock-open .pdp-dock { background: rgba(30, 31, 33, .9); box-shadow: 0 -8px 24px rgba(0, 0, 0, .4); }
  .pdp-dock-open .pdp-dock-tab:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .07); }
  .pdp-dock-sheet { border-bottom-color: rgba(255, 255, 255, .1); }
  .pdp-dock-close { border-color: rgba(255, 255, 255, .22); }
}
/* The buy bar of a page whose dock comes from its rows (phone-dock-rows.js, 2026-11-13: .pd-rows-buy on #checkout-form):
   the email box and Add to Cart on one line, the heading, the line of prose and the box's own label (the placeholder
   says it) gone; the sign-in note and a message wrap under. */
@media (max-width: 899px) {
  .pdp-dock-on .pd-rows-buy:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
  .pdp-dock-on .pd-rows-buy > .field-row { flex: 1 1 150px; margin: 0; }
  .pdp-dock-on .pd-rows-buy > .field-row > .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pdp-dock-on .pd-rows-buy > .field-row input { width: 100%; margin: 0; min-height: 44px; box-sizing: border-box; }
  .pdp-dock-on .pd-rows-buy > .btn { flex: 1 1 150px; width: auto; margin: 0; }
  .pdp-dock-on .pd-rows-buy > .feedback-text:not(:empty), .pdp-dock-on .pd-rows-buy > .gc-note, .pdp-dock-on .pd-rows-buy > .nm-box { flex-basis: 100%; }
  .pdp-dock-on .pd-rows-buy > .feedback-text:empty, .pdp-dock-on .pd-rows-buy > .engraved-note { display: none; }
  /* a details row lifted open: its summary was the label, the sheet's head says it now */
  .pdp-dock-body > details.in-dock-open > summary { display: none; }
}
/* A stage the page marks (data-dock-stage, phone-dock-rows.js: the poker chips' carousel) rather than #result-panel: the
   same box under the bar, the piece above the dock. The page sizes what is inside it (its viewers) in its own CSS. */
@media (max-width: 899px) {
  .pdp-dock-on .pd-stage { position: relative; height: var(--sign-stage, calc(100svh - 230px)); min-height: 380px; box-sizing: border-box; overflow: hidden; margin: 0 0 12px; }
  .pdp-dock-on .pd-stage model-viewer { height: calc(var(--sign-stage, calc(100svh - 230px)) - var(--sign-dock, 80px) - 70px); min-height: 140px; transition: height .22s ease-out; }
}
