/* Portaled outside the bottle canvas: no bottle dimensions or positions change. */
html body .sbp-bottle-note {
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  width: max-content;
  max-width: min(310px, calc(100vw - 20px));
  margin: 0;
  padding: 15px 43px 15px 17px;
  overflow: hidden;
  border: 1px solid #d9bbc9;
  border-radius: 12px;
  background: #fffcfd;
  color: #382d33;
  box-shadow: 0 9px 28px rgb(45 24 35 / 18%), 0 1px 3px rgb(45 24 35 / 8%);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  text-align: left;
  white-space: normal;
  isolation: isolate;
  transform-origin: var(--sbp-note-origin-x, 50%) var(--sbp-note-origin-y, 100%);
  animation: sbp-note-unseal 380ms cubic-bezier(.16,.8,.25,1) both;
}
html body .sbp-bottle-note::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgb(233 196 169 / 30%) 43%, rgb(255 255 255 / 90%) 50%, transparent 67%);
  transform: translateX(-110%);
  animation: sbp-note-glint 670ms 70ms ease-out both;
}
html body .sbp-bottle-note__copy { max-height: min(250px, 42dvh); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
html body .sbp-bottle-note__head { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 0; }
html body .sbp-bottle-note__title { margin: 0; padding: 0; font: inherit; font-weight: 700; color: #76304f; overflow-wrap: anywhere; }
html body .sbp-bottle-note__amount { flex: none; color: #8e747f; font-size: 11px; font-variant-numeric: tabular-nums; }
html body .sbp-bottle-note__text { margin: 5px 0 0; padding: 0; font: inherit; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
html body .sbp-bottle-note__close {
  position: absolute;
  top: 5px; right: 5px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  min-width: 0; min-height: 0;
  margin: 0; padding: 0;
  border: 0; border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: #816875;
  font: 24px/1 sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body .sbp-bottle-note__close:hover { background: #f6eaf0; color: #983763; }
html body .sbp-bottle-note__close:focus-visible { outline: 2px solid #983763; outline-offset: -2px; }
html body .sbp-bottle-note[data-state="closing"] { animation: sbp-note-settle 200ms ease-in both; pointer-events: none; }
html body .sbp-bottle-note[data-state="closing"]::before { animation: none; opacity: 0; }
@keyframes sbp-note-unseal {
  from { opacity: 0; transform: translateY(9px) scale(.92); }
  65% { opacity: 1; }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sbp-note-glint { to { transform: translateX(110%); } }
@keyframes sbp-note-settle { to { opacity: 0; transform: translateY(-5px) scale(.985); } }
@media (prefers-reduced-motion: reduce) {
  html body .sbp-bottle-note, html body .sbp-bottle-note[data-state="closing"] { animation: none; }
  html body .sbp-bottle-note::before { display: none; animation: none; }
}
