.toolpy-app-banner {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 12px;
  right: 12px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(2, 160, 227, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(16, 32, 48, 0.18);
  backdrop-filter: blur(14px);
}

.toolpy-app-banner__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.toolpy-app-banner__content {
  min-width: 0;
  flex: 1 1 auto;
}

.toolpy-app-banner__eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #02a0e3;
  text-transform: uppercase;
}

.toolpy-app-banner__title {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #17212b;
}

.toolpy-app-banner__text {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 17px;
  color: #5c6975;
}

.toolpy-app-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.toolpy-app-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #02a0e3;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(2, 160, 227, 0.28);
}

.toolpy-app-banner__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef6fb;
  color: #5c6975;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

body.has-toolpy-app-banner {
  padding-top: calc(92px + env(safe-area-inset-top, 0px));
}

@media (max-width: 380px) {
  .toolpy-app-banner {
    gap: 10px;
    padding: 10px;
  }

  .toolpy-app-banner__icon {
    width: 46px;
    height: 46px;
  }

  .toolpy-app-banner__title {
    font-size: 15px;
  }

  .toolpy-app-banner__text {
    font-size: 12px;
    line-height: 16px;
  }

  .toolpy-app-banner__cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .toolpy-app-banner__close {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 992px) {
  .toolpy-app-banner {
    display: none;
  }

  body.has-toolpy-app-banner {
    padding-top: 0;
  }
}
