/* Bubble button adapted from Uiverse.io by zjssun (user-supplied reference). */
.app-region-launch {
  --app-region-purple: #7d2ae8;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 10px 22px;
  border: 0;
  border-radius: 6px;
  background: var(--app-region-purple);
  color: #fff;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease;
}
.app-region-launch:link, .app-region-launch:visited, .app-region-launch:hover { color: #fff; }
.app-region-launch:active { transform: scale(.96); }
.app-region-launch:focus-visible { outline: 3px solid #e4ccff; outline-offset: 3px; }
.app-region-close:focus-visible { outline: 3px solid #347463; outline-offset: 3px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .app-region-launch:hover::before, .app-region-launch:hover::after {
    --bubble: radial-gradient(circle, var(--app-region-purple) 20%, transparent 21%);
    --ring: radial-gradient(circle, transparent 12%, var(--app-region-purple) 16%, transparent 24%);
    position: absolute;
    z-index: -1;
    left: 50%;
    width: 150%;
    height: 100%;
    content: "";
    transform: translateX(-50%);
    background-repeat: no-repeat;
    pointer-events: none;
  }
  .app-region-launch:hover::before {
    top: -70%;
    background-image: var(--bubble), var(--ring), var(--bubble), var(--bubble), var(--ring), var(--bubble), var(--bubble), var(--bubble), var(--bubble);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 10% 10%, 18% 18%;
    animation: app-region-bubbles-top .6s ease both;
  }
  .app-region-launch:hover::after {
    bottom: -70%;
    background-image: var(--bubble), var(--bubble), var(--ring), var(--bubble), var(--bubble), var(--bubble), var(--bubble);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
    animation: app-region-bubbles-bottom .6s ease both;
  }
}
@keyframes app-region-bubbles-top {
  0% { background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 40% 90%, 55% 90%, 70% 90%; }
  50% { background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 50% 50%, 65% 20%, 90% 30%; }
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 50% 40%, 65% 10%, 90% 20%;
    background-size: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
}
@keyframes app-region-bubbles-bottom {
  0% { background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 70% -10%, 70% 0%; }
  50% { background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105% 0%; }
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110% 10%;
    background-size: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-region-launch { transition: none; }
  .app-region-launch:active { transform: none; }
}

.app-region-dialog {
  box-sizing: border-box;
  width: min(980px, calc(100% - 24px));
  height: min(860px, calc(100% - 24px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6e3;
  border-radius: 16px;
  background: white;
  color: #16353a;
}
.app-region-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.app-region-dialog::backdrop { background: #03282bd4; }
.app-region-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .65rem .45rem 1rem; border-bottom: 1px solid #dce6e3; }
.app-region-bar h2 { margin: 0; color: inherit; font-size: 1rem; line-height: 1.3; }
.app-region-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: #e0f8f2; color: #123b40; font: 27px/1 system-ui, sans-serif; cursor: pointer; }
.app-region-close:hover { background: #c6f0e6; }
.app-region-frame { width: 100%; height: 100%; border: 0; background: white; }

.storefront-app-region-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: .75rem;
}

.storefront-app-region-heading > a:not(.app-region-launch) {
  margin-inline-start: auto;
}

/* Glow button adapted from Uiverse.io by gharsh11032000. */
.storefront-app-region-heading .app-region-launch {
  box-sizing: border-box;
  width: 120px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: #000;
  font-size: .75rem;
  line-height: 1.25;
  white-space: nowrap;
}

.storefront-app-region-heading .app-region-launch > span {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  align-content: center;
  border-radius: inherit;
  background: #000;
}

.storefront-app-region-heading .app-region-launch::before,
.storefront-app-region-heading .app-region-launch::after {
  position: absolute;
  inset: 0;
  content: '';
  animation: none;
  pointer-events: none;
}

.storefront-app-region-heading .app-region-launch::before {
  z-index: -2;
  inset: -1px 0 0 -4px;
  width: 128px;
  height: 48px;
  margin: auto;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  transform: none;
  transition: transform .6s cubic-bezier(.175, .885, .32, 1.275), scale .6s cubic-bezier(.175, .885, .32, 1.275);
}

.storefront-app-region-heading .app-region-launch::after {
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  filter: blur(20px);
  transform: translate3d(0, 0, 0) scale(.95);
}

.storefront-app-region-heading .app-region-launch:active { transform: none; }
.storefront-app-region-heading .app-region-launch:active::before { scale: .7; }

@media (hover: hover) {
  .storefront-app-region-heading .app-region-launch:hover::after { filter: blur(30px); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .storefront-app-region-heading .app-region-launch:hover::before { transform: rotate(-180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .storefront-app-region-heading .app-region-launch::before { transition: none; }
  .storefront-app-region-heading .app-region-launch:active::before { scale: 1; }
}

@media (max-width: 640px) {
  .storefront-app-region-heading { column-gap: 1rem; }
}
