.q-smart-top-banner {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.q-smart-top-banner__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
}

.q-smart-top-banner__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.q-smart-top-banner__text {
  min-width: 0;
}

.q-smart-top-banner__title {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.q-smart-top-banner__subtitle {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-smart-top-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.q-smart-top-banner__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.q-smart-top-banner__cta:focus-visible,
.q-smart-top-banner__close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@media (min-width: 901px) {
  .q-smart-top-banner:not(.q-smart-top-banner--force) {
    display: none;
  }
}

@media (max-width: 420px) {
  .q-smart-top-banner__inner {
    min-height: 68px;
    grid-template-columns: 34px minmax(0, 1fr) auto 26px;
    gap: 8px;
  }

  .q-smart-top-banner__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .q-smart-top-banner__cta {
    min-width: 52px;
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
}
