.ko-app-promo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  width: min(100%, 360px);
  border-radius: 16px;
  border: 1px solid var(--color-outline-variant, #d8e2ec);
  background: var(--color-surface, #fff);
  box-shadow: 0 16px 48px rgba(20, 26, 34, 0.16);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.ko-app-promo.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ko-app-promo__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-on-surface-variant, #546e7a);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ko-app-promo__close:hover {
  color: var(--color-on-surface, #1a1a1a);
  background: #fff;
}

.ko-app-promo__visual {
  position: relative;
  padding: 20px 20px 0;
  background: linear-gradient(
    165deg,
    rgba(30, 136, 229, 0.12) 0%,
    rgba(30, 136, 229, 0.02) 55%,
    transparent 100%
  );
}

.ko-app-promo__phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-height: 148px;
}

.ko-app-promo__phone {
  width: 108px;
  border-radius: 18px;
  border: 2px solid rgba(20, 26, 34, 0.12);
  background: #0f1419;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 8px 6px 10px;
}

.ko-app-promo__phone--back {
  transform: translateY(10px) scale(0.92);
  opacity: 0.85;
}

.ko-app-promo__phone-notch {
  width: 36%;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 8px;
}

.ko-app-promo__phone-screen {
  border-radius: 12px;
  background: linear-gradient(180deg, #1e88e5 0%, #1565c0 100%);
  min-height: 108px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ko-app-promo__phone-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ko-app-promo__phone-label {
  margin: 0;
  font-family: var(--font-label-sm, "Sora", sans-serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.ko-app-promo__body {
  padding: 16px 20px 18px;
}

.ko-app-promo__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(30, 136, 229, 0.1);
  color: var(--color-primary, #1e88e5);
  font-family: var(--font-label-sm, "Sora", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ko-app-promo__title {
  margin: 0 0 6px;
  font-family: var(--font-headline-md, "Sora", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-on-surface, #1a1a1a);
  line-height: 1.3;
}

.ko-app-promo__text {
  margin: 0 0 14px;
  font-family: var(--font-body-md, "Sora", sans-serif);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-on-surface-variant, #546e7a);
}

.ko-app-promo__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ko-app-promo__store {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-label-sm, "Sora", sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ko-app-promo__store:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ko-app-promo__store--secondary {
  background: var(--color-surface-container-high, #e5ecf3);
  color: var(--color-on-surface, #1a1a1a);
}

@media (max-width: 767px) {
  .ko-app-promo.ko-app-promo--mobile-enabled {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

  .ko-app-promo.ko-app-promo--mobile-enabled .ko-app-promo__phones {
    min-height: 120px;
  }

  .ko-app-promo.ko-app-promo--mobile-enabled .ko-app-promo__phone {
    width: 96px;
  }

  .ko-app-promo.ko-app-promo--mobile-enabled .ko-app-promo__store {
    min-height: 44px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ko-app-promo {
    transition: none;
  }
}
