.elpers-app-sticky,
.elpers-app-static {
  --elpers-app-accent: #111;
  --elpers-app-black: #111;
  --elpers-app-white: #fff;
  --elpers-app-muted: #5f6368;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.elpers-app-sticky *,
.elpers-app-static * {
  box-sizing: border-box;
}

.elpers-app-sticky {
  position: fixed;
  right: var(--elpers-app-side-offset, var(--elpers-app-desktop-side, 24px));
  bottom: calc(var(--elpers-app-widget-bottom, var(--elpers-app-desktop-bottom, 76px)) + env(safe-area-inset-bottom, 0px));
  left: auto;
  z-index: 99990;
  transition: right .25s ease, left .25s ease, bottom .25s ease;
}

.elpers-app-sticky--desktop-left {
  right: auto;
  left: var(--elpers-app-side-offset, var(--elpers-app-desktop-side, 24px));
}

.elpers-app-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0;
  padding: 7px 6px 5px;
  overflow: visible;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--elpers-app-black);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .27);
  cursor: pointer;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.elpers-app-launcher::before {
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 2px solid var(--elpers-app-accent);
  border-radius: inherit;
  content: "";
  opacity: .45;
  animation: elpers-app-pulse 2.8s ease-out infinite;
}

.elpers-app-launcher:hover,
.elpers-app-launcher:focus-visible,
.elpers-app-sticky.is-open .elpers-app-launcher {
  background: var(--elpers-app-accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .34);
  transform: translateY(-2px);
}

.elpers-app-launcher:focus-visible,
.elpers-app-close:focus-visible,
.elpers-app-cta:focus-visible,
.elpers-app-qr-link:focus-visible {
  outline: 3px solid var(--elpers-app-accent);
  outline-offset: 3px;
}

.elpers-app-launcher-icon {
  display: block;
  width: 27px;
  height: 27px;
  line-height: 1;
}

.elpers-app-launcher-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.elpers-app-launcher-icon svg path {
  fill: currentColor;
  stroke: none;
}

.elpers-app-launcher-icon svg .elpers-app-qr-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.elpers-app-launcher-icon svg .elpers-app-qr-dots {
  fill: currentColor;
  stroke: none;
}

.elpers-app-launcher-custom-icon {
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  object-fit: contain;
}

.elpers-app-launcher-label {
  display: block;
  margin-top: -2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1;
}

.elpers-app-launcher--app_only {
  padding: 6px;
}

.elpers-app-launcher--app_only .elpers-app-launcher-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
}

.elpers-app-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  width: min(390px, calc(100vw - 32px));
  min-height: 194px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, .11);
  border-top: 4px solid var(--elpers-app-accent);
  border-radius: 3px;
  background: #fff;
  color: var(--elpers-app-black);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(24px, 10px, 0) scale(.96);
  transform-origin: bottom right;
  visibility: hidden;
  transition: opacity .3s ease, transform .36s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .36s;
}

.elpers-app-sticky--desktop-left .elpers-app-panel {
  right: auto;
  left: 0;
  transform: translate3d(-24px, 10px, 0) scale(.96);
  transform-origin: bottom left;
}

.elpers-app-sticky.is-open .elpers-app-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

.elpers-app-qr-link {
  display: block;
  align-self: center;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.elpers-app-qr-link img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.elpers-app-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.elpers-app-kicker {
  display: block;
  margin: 0 0 4px;
  color: var(--elpers-app-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.elpers-app-title {
  display: block;
  margin: 0;
  color: var(--elpers-app-black);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.elpers-app-content p {
  margin: 8px 0 12px;
  color: var(--elpers-app-muted);
  font-size: 13px;
  line-height: 1.42;
}

.elpers-app-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--elpers-app-black);
  border-radius: 1px;
  background: var(--elpers-app-black);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.elpers-app-cta:hover {
  border-color: var(--elpers-app-accent);
  background: var(--elpers-app-accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.elpers-app-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.elpers-app-desktop-hint {
  display: block;
  margin-top: 7px;
  color: #7a7a7a;
  font-size: 10px;
  line-height: 1.25;
}

.elpers-app-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 6px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f6f6f;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.elpers-app-close:hover {
  background: #f2f2f2;
  color: #111;
}

.elpers-app-close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.elpers-app-static {
  width: 100%;
  margin: 24px 0;
}

.elpers-app-panel--static {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 520px;
  min-height: 0;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
  margin: 0 auto;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

@keyframes elpers-app-pulse {
  0% { opacity: .45; transform: scale(.88); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

@media (max-width: 767px) {
  .elpers-app-sticky {
    right: var(--elpers-app-side-offset, var(--elpers-app-mobile-side, 14px));
    bottom: calc(var(--elpers-app-widget-bottom, var(--elpers-app-mobile-bottom, 70px)) + env(safe-area-inset-bottom, 0px));
    left: auto;
  }

  .elpers-app-sticky--mobile-left {
    right: auto;
    left: var(--elpers-app-side-offset, var(--elpers-app-mobile-side, 14px));
  }

  .elpers-app-launcher {
    width: 56px;
    height: 56px;
    padding-top: 6px;
  }

  .elpers-app-launcher-icon {
    width: 24px;
    height: 24px;
  }

  .elpers-app-panel {
    position: fixed;
    right: 12px;
    bottom: calc(var(--elpers-app-widget-bottom, var(--elpers-app-mobile-bottom, 70px)) + 78px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    width: auto;
    min-height: 138px;
    padding: 14px;
    padding-right: 38px;
    transform: translate3d(0, 20px, 0) scale(.98);
    transform-origin: bottom center;
  }

  .elpers-app-sticky--mobile-left .elpers-app-panel,
  .elpers-app-sticky--desktop-left .elpers-app-panel {
    right: 12px;
    left: 12px;
    transform: translate3d(0, 20px, 0) scale(.98);
    transform-origin: bottom center;
  }

  .elpers-app-sticky.is-open .elpers-app-panel,
  .elpers-app-sticky--mobile-left.is-open .elpers-app-panel,
  .elpers-app-sticky--desktop-left.is-open .elpers-app-panel {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .elpers-app-title {
    font-size: 19px;
  }

  .elpers-app-content p {
    margin: 5px 0 9px;
    font-size: 12px;
    line-height: 1.35;
  }

  .elpers-app-cta {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .elpers-app-desktop-hint {
    display: none;
  }

  .elpers-app-panel--static {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
    width: 100%;
    padding: 14px;
    transform: none;
  }
}

@media (min-width: 768px) {
  .elpers-app-hide-desktop {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .elpers-app-hide-mobile {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .elpers-app-panel {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 11px;
    padding-left: 11px;
  }

  .elpers-app-kicker {
    font-size: 9px;
  }

  .elpers-app-title {
    font-size: 17px;
  }

  .elpers-app-content p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elpers-app-launcher::before {
    animation: none;
  }

  .elpers-app-launcher,
  .elpers-app-panel,
  .elpers-app-cta {
    scroll-behavior: auto;
    transition-duration: .01ms !important;
  }
}

@media print {
  .elpers-app-sticky {
    display: none !important;
  }
}
