.fluid-totem {
  --drink: #e8ac38;
  --level: 62%;
  border: 1px solid #e8e6ec;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  color: #211e29;
}
.ft-toolbar {
  height: 70px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeeaf2;
  gap: 16px;
}
.ft-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
}
.ft-location > span:last-child {
  color: #77717e;
}
.ft-dot,
.ft-status-dot {
  width: 7px;
  height: 7px;
  background: #7a52b0;
  border-radius: 50%;
  flex: none;
}
.ft-separator {
  color: #d2ccd9;
  margin: 0 4px;
}
.ft-private {
  font-size: 11px;
  color: #81788c;
}
.ft-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #77717e;
}
.ft-picker select {
  width: 145px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
  background: #faf9fc;
  border-color: #e6e1ed;
}
.ft-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ft-visual {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  background: #f0e8fa;
  background:
    radial-gradient(
      ellipse at 42% 70%,
      color-mix(in srgb, var(--drink) 16%, #f4eefb),
      transparent 65%
    ),
    linear-gradient(145deg, #f7f2ff, #e9dbf8);
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ft-overline {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 500;
  color: #766086;
}
.ft-visual-heading h2 {
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -1.1px;
  font-weight: 600;
  margin: 14px 0 0;
  color: #372346;
}
.ft-drink-scene {
  flex: 1;
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}
.ft-orbit {
  position: absolute;
  border: 1px solid #c3acd94d;
  border-radius: 50%;
  width: 310px;
  height: 310px;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-two {
  width: 390px;
  height: 390px;
}
.ft-spark {
  position: absolute;
  font-size: 28px;
  color: #aa87c9;
  font-weight: 400;
}
.spark-one {
  left: 9%;
  top: 37%;
}
.spark-two {
  right: 7%;
  top: 66%;
  font-size: 20px;
}
.ft-glass {
  position: relative;
  width: 184px;
  height: 258px;
  background: linear-gradient(105deg, #ffffff80, #ffffff1c 35%, #ffffff60);
  border: 3px solid #ffffffc9;
  border-top: 5px solid white;
  border-bottom: 8px solid #ffffffb3;
  border-radius: 13px 13px 37px 37px;
  box-shadow:
    inset -10px 0 18px #fff5,
    0 20px 45px #58406d1c;
  overflow: hidden;
  z-index: 3;
  transform: perspective(800px) rotateY(-8deg) rotateZ(-5deg);
}
.ft-glass:after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 5px 0 10px #fff8,
    inset -6px 0 10px #ffffff50;
  border-radius: inherit;
  pointer-events: none;
}
.ft-liquid {
  position: absolute;
  bottom: 0;
  left: -2%;
  width: 104%;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--drink) 72%, white),
    var(--drink) 65%,
    color-mix(in srgb, var(--drink) 82%, #4b2533)
  );
  transition: height 650ms cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 0;
}
.ft-wave {
  position: absolute;
  left: -40%;
  top: -14px;
  width: 180%;
  height: 32px;
  border-radius: 43%;
  background: color-mix(in srgb, var(--drink) 70%, white);
  animation: ft-wave 4s ease-in-out infinite alternate;
}
.wave-two {
  top: -9px;
  background: color-mix(in srgb, var(--drink) 88%, white);
  animation-delay: -2s;
  animation-duration: 5s;
  opacity: 0.7;
}
.ft-foam {
  display: none;
  position: absolute;
  top: -14px;
  left: -5%;
  width: 110%;
  height: 25px;
  background: #fff8dd;
  border-radius: 45% 40% 30% 35%;
  box-shadow: 0 4px 9px #f2e2b944;
}
.with-foam .ft-foam {
  display: block;
}
.ft-glass-highlight {
  position: absolute;
  top: 15px;
  left: 17px;
  width: 10px;
  height: 76%;
  border-radius: 10px;
  background: linear-gradient(#fff7, #fff0);
  z-index: 4;
}
.ft-glass-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0.75;
}
.ft-bubble {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  background: #fff8;
  border-radius: 50%;
  animation: ft-rise 3.8s linear infinite;
}
.b1 {
  left: 18%;
  animation-delay: -1s;
}
.b2 {
  left: 42%;
  width: 3px;
  height: 3px;
  animation-delay: -2.2s;
}
.b3 {
  left: 73%;
  animation-delay: -0.4s;
}
.b4 {
  left: 57%;
  width: 4px;
  height: 4px;
  animation-delay: -3s;
}
.ft-coaster {
  position: absolute;
  top: calc(50% + 124px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  height: 24px;
  background: #8e6ba421;
  border: 1px solid #b69ac92e;
  border-radius: 50%;
  z-index: 1;
}
.ft-drink-label {
  position: absolute;
  bottom: 6px;
  font-size: 10px;
  color: #8c749e;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ft-visual-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: #796987;
  padding-top: 28px;
}
.ft-visual-footer .ft-status-dot {
  width: 5px;
  height: 5px;
}
.ft-stream {
  display: none;
  position: absolute;
  height: 100px;
  width: 8px;
  top: 0;
  left: 50%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--drink), color-mix(in srgb, var(--drink) 40%, white));
  z-index: 4;
  opacity: 0.8;
}
.is-flowing .ft-stream {
  display: block;
  animation: ft-pour 0.7s ease-in-out infinite alternate;
}
.ft-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ft-product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ft-category {
  color: #8a6ca8;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ft-status {
  font-size: 10px;
  color: #417651;
  background: #edf6ef;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.ft-status.closing {
  background: #f1e8fb;
  color: #765293;
}
.ft-product-name {
  font-size: 36px;
  line-height: 1.17;
  font-weight: 600;
  letter-spacing: -1.1px;
  margin: 20px 0 12px;
  overflow-wrap: anywhere;
}
.ft-description {
  font-size: 13px;
  line-height: 1.7;
  color: #827b8a;
  margin: 0;
  max-width: 36ch;
}
.ft-characteristics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.ft-characteristics span {
  font-size: 10px;
  color: #746b80;
  background: #f6f3f9;
  border-radius: 6px;
  padding: 7px 10px;
}
.ft-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #eeeaf2;
  border-bottom: 1px solid #eeeaf2;
  padding: 22px 0;
  margin: 28px 0;
  gap: 16px;
}
.ft-price-row > div:last-child {
  border-left: 1px solid #eeeaf2;
  padding-left: 24px;
}
.ft-price-row span,
.ft-amounts span {
  display: block;
  font-size: 10px;
  color: #8b8394;
  line-height: 1.6;
}
.ft-price-row b {
  display: block;
  font-size: 26px;
  line-height: 36px;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: -0.8px;
}
.ft-price-row small {
  font-size: 10px;
  color: #81788b;
  font-weight: 400;
  letter-spacing: 0;
}
.ft-start {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.ft-scan-icon {
  width: 46px;
  height: 46px;
  flex: none;
  background: #f0e8fb;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ft-scan-icon img {
  filter: brightness(0);
}
.ft-start h2 {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  font-weight: 600;
}
.ft-start p {
  font-size: 10px;
  color: #908795;
  line-height: 1.6;
  margin: 4px 0 0;
}
.ft-code-label {
  font-size: 10px;
  color: #766c80;
  margin-bottom: 8px;
  font-weight: 400;
}
.ft-code {
  background: #fcfbfd;
  border: 1px solid #e5dfec;
  border-radius: 10px;
  padding: 15px;
  font-size: 12px;
  min-height: 50px;
}
.ft-code::placeholder {
  color: #aaa0b2;
}
.ft-start-button,
.ft-stop {
  background: #241d2f;
  color: #fff;
  font-size: 12px;
  border-radius: 10px;
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  transition:
    transform 0.15s,
    background 0.2s;
}
.ft-start-button:hover,
.ft-stop:hover {
  background: #40304f;
}
.ft-start-button:active,
.ft-stop:active {
  transform: scale(0.99);
}
.ft-start-button span,
.ft-stop span {
  font-size: 20px;
  font-weight: 400;
}
.ft-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  font-size: 8px;
  color: #9b91a3;
}
.ft-steps b {
  font-weight: 500;
  color: #8d70aa;
  margin-right: 3px;
}
.ft-steps i {
  width: 10px;
  height: 1px;
  background: #dfd6e8;
  flex: none;
}
.ft-assurance {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 9px;
  line-height: 1.7;
  color: #a094ab;
  margin-top: 28px;
}
.ft-assurance > span {
  font-size: 16px;
}
.ft-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid #eeeaf2;
  font-size: 9px;
  line-height: 1.6;
  color: #9b90a5;
}
.ft-footer i {
  font-style: normal;
  padding: 0 7px;
  color: #c6b7d0;
}
.ft-session {
  margin-top: 28px;
}
.ft-greeting {
  font-size: 14px;
  font-weight: 500;
}
.ft-greeting > span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #9a90a3;
  margin-top: 5px;
}
.ft-volume {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}
.ft-volume .volume-readout {
  font-size: 58px;
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 600;
  color: #2f213d;
  font-variant-numeric: tabular-nums;
}
.ft-volume > span:last-child {
  font-size: 12px;
  color: #9a8ea4;
}
.ft-progress {
  height: 6px;
  border-radius: 6px;
  background: #f0eaf5;
  overflow: hidden;
  margin-top: 14px;
}
.ft-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #aa85ce;
  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.ft-limit {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9b8fa5;
  margin-top: 9px;
}
.ft-limit b {
  font-weight: 400;
}
.ft-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 24px 0;
  padding: 18px;
  background: #f7f3fb;
  border-radius: 12px;
  gap: 16px;
}
.ft-amounts b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-top: 5px;
}
.ft-amounts > div:last-child {
  border-left: 1px solid #e5dcec;
  padding-left: 16px;
}
.ft-simulation {
  margin-top: 0;
  margin-bottom: 12px;
}
.ft-simulation button {
  font-size: 11px;
  min-height: 40px;
  padding: 8px;
}
.ft-closing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.8;
  background: #f6f0fc;
  border-radius: 10px;
  padding: 16px;
  color: #7a6190;
}
.ft-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dfd0ed;
  border-top-color: #8b64a9;
  border-radius: 50%;
  animation: ft-spin 0.8s linear infinite;
  flex: none;
}
.is-closing .ft-bubble,
.is-closing .ft-wave {
  animation-play-state: paused;
}
.is-idle .ft-bubble {
  opacity: 0.65;
}
.totem-shell .main {
  max-width: 1460px;
  padding: 24px 36px;
}
.totem-shell .topbar {
  height: 70px;
}
.totem-shell .topbar-caption {
  margin-left: auto;
  font-size: 11px;
}
@keyframes ft-wave {
  from {
    transform: translateX(-5%) rotate(-3deg);
  }
  to {
    transform: translateX(5%) rotate(3deg);
  }
}
@keyframes ft-rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.65;
  }
  100% {
    transform: translateY(-240px);
    opacity: 0;
  }
}
@keyframes ft-pour {
  from {
    transform: scaleX(0.8);
    opacity: 0.5;
  }
  to {
    transform: scaleX(1.1);
    opacity: 0.9;
  }
}
@keyframes ft-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .ft-visual {
    min-height: 720px;
    padding: 48px;
  }
  .ft-content {
    padding: 48px 56px;
  }
  .ft-product-name {
    font-size: 44px;
  }
  .ft-visual-heading h2 {
    font-size: 42px;
  }
  .ft-glass {
    width: 205px;
    height: 288px;
  }
}
@media (max-width: 1150px) {
  .ft-visual,
  .ft-content {
    padding: 28px;
  }
  .ft-visual-heading h2 {
    font-size: 30px;
  }
  .ft-product-name {
    font-size: 30px;
  }
  .ft-visual {
    min-height: 620px;
  }
  .ft-toolbar {
    padding: 0 22px;
  }
  .ft-steps {
    font-size: 7px;
  }
  .ft-orbit {
    width: 260px;
    height: 260px;
  }
  .orbit-two {
    width: 320px;
    height: 320px;
  }
  .ft-price-row small {
    display: block;
  }
  .ft-glass {
    width: 160px;
    height: 240px;
  }
}
@media (max-width: 760px) {
  .totem-shell .main {
    padding: 16px;
  }
  .fluid-totem {
    border-radius: 18px;
  }
  .ft-toolbar {
    min-height: 60px;
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .ft-location {
    font-size: 10px;
    gap: 7px;
  }
  .ft-private {
    font-size: 9px;
  }
  .ft-picker {
    width: 100%;
    justify-content: space-between;
  }
  .ft-layout {
    grid-template-columns: 1fr;
  }
  .ft-visual {
    min-height: 330px;
    padding: 24px 24px 18px;
  }
  .ft-visual-heading {
    position: relative;
    z-index: 5;
    max-width: 180px;
  }
  .ft-overline {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .ft-visual-heading h2 {
    font-size: 27px;
    line-height: 1.25;
    margin-top: 10px;
  }
  .ft-drink-scene {
    position: absolute;
    right: 0;
    top: 15px;
    width: 65%;
    height: 280px;
    min-height: 0;
    justify-content: center;
    padding: 0;
  }
  .ft-glass {
    width: 120px;
    height: 180px;
    transform: rotate(-6deg);
    margin-top: 14px;
  }
  .ft-glass-logo {
    transform: scale(0.8);
  }
  .ft-orbit {
    width: 210px;
    height: 210px;
  }
  .orbit-two {
    width: 260px;
    height: 260px;
  }
  .ft-coaster {
    width: 155px;
    top: calc(50% + 94px);
    height: 17px;
  }
  .ft-drink-label {
    bottom: 8px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .spark-one {
    left: 12%;
    top: 17%;
    font-size: 20px;
  }
  .spark-two {
    right: 7%;
    top: 73%;
    font-size: 14px;
  }
  .ft-visual-footer {
    margin-top: auto;
    padding-top: 220px;
    font-size: 9px;
    justify-content: flex-start;
  }
  .ft-content {
    padding: 26px 22px;
  }
  .ft-product-name {
    font-size: 32px;
    margin-top: 18px;
  }
  .ft-description {
    font-size: 12px;
  }
  .ft-price-row {
    margin: 24px 0;
    padding: 18px 0;
  }
  .ft-price-row small {
    display: inline;
    font-size: 9px;
  }
  .ft-start p {
    font-size: 10px;
  }
  .ft-steps {
    font-size: 8px;
  }
  .ft-footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
  }
  .ft-assurance {
    margin-top: 22px;
  }
  .ft-volume .volume-readout {
    font-size: 52px;
  }
  .ft-category {
    font-size: 9px;
  }
  .ft-status {
    font-size: 9px;
  }
  .ft-stream {
    height: 57px;
    top: 0;
  }
  .has-session .ft-visual {
    min-height: 290px;
  }
  .has-session .ft-visual-footer {
    padding-top: 180px;
  }
  .ft-amounts {
    margin: 20px 0;
  }
}
@media (max-width: 360px) {
  .ft-visual-heading {
    max-width: 150px;
  }
  .ft-visual-heading h2 {
    font-size: 24px;
  }
  .ft-content {
    padding: 24px 18px;
  }
  .ft-steps {
    gap: 4px;
    font-size: 7px;
  }
  .ft-product-name {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fluid-totem *,
  .fluid-totem *:before,
  .fluid-totem *:after {
    animation: none !important;
    transition: none !important;
  }
}
.ft-stream {
  top: calc(50% - 220px);
}
@media (min-width: 761px) and (max-height: 900px) {
  .totem-shell .main {
    padding: 16px 24px;
  }
  .totem-shell .ft-toolbar {
    height: 56px;
  }
  .totem-shell .ft-visual {
    min-height: 520px;
    padding: 28px;
  }
  .totem-shell .ft-content {
    padding: 24px 28px;
  }
  .totem-shell .ft-drink-scene {
    min-height: 270px;
  }
  .totem-shell .ft-visual-heading h2 {
    font-size: 30px;
  }
  .totem-shell .ft-product-name {
    font-size: 30px;
    margin-top: 16px;
  }
  .totem-shell .ft-price-row {
    margin: 20px 0;
    padding: 16px 0;
  }
  .totem-shell .ft-characteristics {
    margin-top: 16px;
  }
  .totem-shell .ft-assurance {
    margin-top: 18px;
  }
  .totem-shell .ft-footer {
    padding: 12px 24px;
  }
}
@media (max-width: 760px) {
  .ft-visual-heading {
    max-width: 150px;
  }
  .ft-visual-heading h2 {
    font-size: 24px;
  }
  .ft-drink-scene {
    right: -15px;
    width: 62%;
    top: 35px;
  }
  .ft-stream {
    top: calc(50% - 150px);
    height: 75px;
  }
}
