/* Story-to-checkout entry. Local artwork and the existing licensed brand font. */
.racoono-entry {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  width: fit-content;
  max-width: 100%;
  min-height: 108px;
  margin-top: 2rem;
  padding: .85rem 1.25rem .85rem .9rem;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(125deg, #80629e 0%, #69467f 47%, #8c69ad 100%) padding-box,
    linear-gradient(135deg, #eee0ff 0%, #bd8fdd 27%, #fff7e5 51%, #d4b4f2 74%, #a874ca 100%) border-box;
  color: #fff7e5;
  box-shadow: 0 5px 0 #b394cb, 0 12px 30px #9b76bf2b, inset 0 1px 1px #ffffff87;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.racoono-entry::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70% -30%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, #ffffff25 48%, #ffffff56 50%, #ffffff25 52%, transparent 60%);
  transform: translateX(-100%);
  animation: racoono-entry-sheen 10s ease-in-out infinite;
}
.racoono-entry::after {
  content: "✧";
  position: absolute;
  top: .3rem;
  right: .8rem;
  color: #f7e7ff;
  font-size: 1rem;
  pointer-events: none;
}
.racoono-entry-portrait {
  flex: 0 0 76px;
  width: 76px;
  border: 2px solid #fff7e5;
  border-radius: 50%;
  padding: 3px;
  background: #f3e9fa;
  box-shadow: 0 0 0 3px #d9b7f147, 0 3px 12px #3b25454d;
}
.racoono-entry-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
}
.racoono-entry-copy { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .1rem; }
.racoono-entry-title {
  display: block;
  padding: .07em .08em 0 0;
  font-family: "Racoono Script", Georgia, serif;
  font-size: clamp(2rem, 3.45vw, 3.4rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff7e5;
  text-shadow: 0 1px 1px #49335c, 0 0 14px #fff5d94f;
}
.racoono-entry-caption {
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #fff7e5;
}
.racoono-entry-arrow {
  flex: none;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  padding-left: .05rem;
  transition: transform .2s ease;
}
.racoono-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #b394cb, 0 16px 35px #9b76bf45, inset 0 1px 1px #ffffffa8;
}
.racoono-entry:hover .racoono-entry-arrow { transform: translate(2px, -2px); }
.racoono-entry:active { transform: translateY(2px); box-shadow: 0 2px 0 #b394cb, 0 7px 20px #9b76bf2b; }
.racoono-entry:focus-visible { outline: 3px solid #442c58; outline-offset: 6px; }
@keyframes racoono-entry-sheen {
  0%, 12% { transform: translateX(-100%); }
  40%, 100% { transform: translateX(100%); }
}
@media (max-width: 1000px) and (min-width: 741px) {
  .racoono-entry { gap: .7rem; padding-right: .9rem; }
  .racoono-entry-portrait { flex-basis: 62px; width: 62px; }
  .racoono-entry-title { font-size: 2.5rem; }
  .racoono-entry-caption { font-size: .58rem; }
}
@media (max-width: 740px) {
  .racoono-entry { min-height: 100px; gap: .85rem; margin-top: 1.7rem; }
  .racoono-entry-title { font-size: clamp(2.2rem, 7.8vw, 3.2rem); }
  .racoono-entry-portrait { flex-basis: 64px; width: 64px; }
}
@media (max-width: 400px) {
  .racoono-entry { gap: .55rem; padding: .8rem .75rem .8rem .65rem; border-radius: 20px; min-height: 94px; }
  .racoono-entry-portrait { flex-basis: 52px; width: 52px; padding: 2px; }
  .racoono-entry-title { font-size: 2.2rem; }
  .racoono-entry-caption { font-size: .53rem; letter-spacing: .035em; }
  .racoono-entry-arrow { font-size: 1.25rem; }
}
@media (max-width: 350px) {
  .racoono-entry-title { font-size: 1.7rem; }
  .racoono-entry-caption { font-size: .48rem; }
}
@media (prefers-reduced-motion: reduce) {
  .racoono-entry, .racoono-entry-arrow { transition: none; }
  .racoono-entry::before { animation: none; transform: translateX(100%); }
  .racoono-entry:hover, .racoono-entry:active, .racoono-entry:hover .racoono-entry-arrow { transform: none; }
}

/* A small, persistent route to checkout. Its reserved footer space lets every
   last line scroll clear; toast messages sit above it, including on phones. */
:root { --racoono-float-clearance: calc(116px + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: var(--racoono-float-clearance); }
.footer { padding-bottom: var(--racoono-float-clearance); }
.toast { bottom: var(--racoono-float-clearance); }
.racoono-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 244px;
  max-width: calc(100vw - 32px);
  min-height: 88px;
  padding: 9px 18px 9px 10px;
  border: 2px solid #e9d3ff;
  border-radius: 24px;
  background: linear-gradient(115deg, #a990bc, #7e6595 50%, #65507d);
  color: #fff7e5;
  box-shadow: 0 0 0 3px #e0c8f34a, 0 7px 22px #41245340, 0 0 22px #bb8de359, inset 0 1px 1px #fff7e58c;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .2s ease, transform .2s ease;
}
.racoono-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, #fff7e526 45%, #fff7e53b 50%, transparent 64%);
  background-size: 300% 100%;
  animation: racoono-float-sheen 9s ease-in-out infinite;
}
.racoono-float-portrait {
  flex: none;
  display: block;
  width: 62px;
  height: 62px;
  padding: 3px;
  background: #fffaf0;
  border: 1px solid #fffdf5;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e8d4fb7a, 0 0 17px #f4dcff99;
}
.racoono-float-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.racoono-float-title {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 4px;
  font-family: "Racoono Script", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: .86;
  color: #fff7e5;
  text-shadow: 0 1px 1px #564163, 0 0 9px #fff7e573;
}
.racoono-float-title span { display: block; white-space: nowrap; padding-right: 3px; }
.racoono-float-title span + span { margin-top: 5px; }
.racoono-float-arrow { flex: none; align-self: flex-end; margin-bottom: 4px; font-size: 1.35rem; line-height: 1; }
.racoono-float-sparkle { position: absolute; top: 8px; right: 14px; font-size: .75rem; text-shadow: 0 0 10px #fff7e5; pointer-events: none; }
.racoono-float:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px #e0c8f37a, 0 9px 26px #4124534d, 0 0 26px #bb8de38c, inset 0 1px 1px #fff7e5; }
.racoono-float:active { transform: translateY(1px); }
.racoono-float:focus-visible { outline: 3px solid #442c58; outline-offset: 6px; box-shadow: 0 0 0 4px #fff7e5, 0 0 28px #bb8de3; }
@keyframes racoono-float-sheen { 0%, 8% { background-position: 150% 0; } 40%, 100% { background-position: -80% 0; } }
@media (max-width: 740px) {
  :root { --racoono-float-clearance: calc(106px + env(safe-area-inset-bottom, 0px)); }
  .racoono-float { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 220px; min-height: 78px; gap: 10px; padding: 8px 14px 8px 9px; border-radius: 22px; }
  .racoono-float-portrait { width: 54px; height: 54px; }
  .racoono-float-title { font-size: 2rem; }
  .racoono-float-arrow { font-size: 1.2rem; }
  .racoono-float-sparkle { top: 7px; right: 12px; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .racoono-float, .racoono-float::before { animation: none; transition: none; }
  .racoono-float::before { background-position: 50% 0; }
  .racoono-float:hover, .racoono-float:active { transform: none; }
}
