/* Wiser Asset — shared page utilities */
#wa-page-tools {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 10000;
  display: grid;
  gap: 8px;
  font-family: inherit;
}
#wa-page-tools .wa-page-tool {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(180, 154, 100, .36);
  border-radius: 3px;
  background: rgba(20, 22, 24, .94);
  color: #d2bf95;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  backdrop-filter: blur(12px);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
#wa-page-tools .wa-page-tool span { font-size: 10px; line-height: 1.2; }
#wa-page-tools .wa-page-tool svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#wa-page-tools .wa-page-tool:hover:not(:disabled) {
  background: #282720;
  border-color: #b49a64;
  color: #eee3ca;
}
#wa-page-tools .wa-page-tool:disabled { opacity: .45; cursor: default; }
#wa-page-tools .wa-page-tool:focus-visible,
#wa-page-qr-dialog button:focus-visible,
#wa-page-qr-dialog input:focus-visible {
  outline: 2px solid #b49a64;
  outline-offset: 4px;
}
#wa-page-qr-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 30px 28px 24px;
  width: min(380px, calc(100vw - 32px));
  max-width: 380px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid #d7cdb9;
  border-radius: 5px;
  background: #f5f3ee;
  color: #101215;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
  font-family: inherit;
  text-align: center;
  overscroll-behavior: contain;
}
#wa-page-qr-dialog:not([open]) { display: none; }
#wa-page-qr-dialog[open] { display: block; }
#wa-page-qr-dialog::backdrop { background: rgba(7, 9, 11, .7); backdrop-filter: blur(4px); }
#wa-page-qr-dialog .wa-qr-close {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #786136;
  cursor: pointer;
  border-radius: 2px;
}
#wa-page-qr-dialog .wa-qr-close:hover { background: #e9e4d9; }
#wa-page-qr-dialog .wa-qr-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#wa-page-qr-dialog .wa-qr-eyebrow { margin: 0 0 12px; color: #786136; font-size: 9px; line-height: 1.4; letter-spacing: .17em; }
#wa-page-qr-dialog h2 { margin: 0; color: #101215; font-size: 23px; font-weight: 400; line-height: 1.5; letter-spacing: .04em; }
#wa-page-qr-dialog .wa-qr-help { margin: 7px 0 18px; color: #75756e; font-size: 12px; line-height: 1.7; }
#wa-page-qr-dialog .wa-qr-code {
  box-sizing: border-box;
  width: 256px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid #e2ded4;
  background: #fff;
  display: grid;
  place-items: center;
}
#wa-page-qr-dialog .wa-qr-code svg { display: block; width: 100%; height: 100%; }
#wa-page-qr-dialog .wa-qr-code svg path { fill: #000; stroke: none; }
#wa-page-qr-dialog .wa-qr-code svg rect { fill: #fff; stroke: none; }
#wa-page-qr-dialog .wa-qr-page-title { margin: 16px 0 12px; color: #504c41; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#wa-page-qr-dialog .wa-qr-link-label { display: block; text-align: left; font-size: 10px; line-height: 1.5; color: #807767; margin-bottom: 5px; }
#wa-page-qr-dialog .wa-qr-link-row { display: flex; align-items: stretch; gap: 7px; }
#wa-page-qr-dialog .wa-qr-link {
  box-sizing: border-box;
  min-width: 0;
  flex: 1;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d7d0c1;
  border-radius: 2px;
  background: #fff;
  color: #5b564b;
  font: 11px/1.6 monospace;
  text-align: left;
}
#wa-page-qr-dialog .wa-qr-copy {
  all: unset;
  box-sizing: border-box;
  padding: 9px 12px;
  min-height: 40px;
  border: 1px solid #b49a64;
  border-radius: 2px;
  background: #eee7d9;
  color: #786136;
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
  cursor: pointer;
}
#wa-page-qr-dialog .wa-qr-copy:hover { background: #e6dcc8; }
#wa-page-qr-dialog .wa-qr-status { min-height: 17px; margin: 8px 0 0; color: #786136; font-size: 10px; line-height: 1.7; }
@media (max-width: 600px) {
  #wa-page-tools { right: max(12px, env(safe-area-inset-right)); bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px)); gap: 6px; }
  #wa-page-tools .wa-page-tool { width: 52px; height: 54px; gap: 4px; }
  #wa-page-tools .wa-page-tool svg { width: 18px; height: 18px; }
  #wa-page-tools .wa-page-tool span { font-size: 9px; }
  #wa-page-qr-dialog { padding: 28px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #wa-page-tools .wa-page-tool { transition: none; }
}
@media print {
  #wa-page-tools, #wa-page-qr-dialog { display: none !important; }
}
