/* Persistent install benefit banner shared by all public customer pages. */
.psh-install-card {
  position: sticky;
  top: 0;
  z-index: 180;
  width: 100%;
  margin: 0;
  padding: 12px max(14px, calc((100vw - 760px) / 2 + 14px));
  padding-right: max(52px, calc((100vw - 760px) / 2 + 52px));
  border: 0;
  border-bottom: 1px solid #e2c066;
  border-radius: 0;
  background: linear-gradient(135deg, #fffdf8, #fff1b8 72%, #ffe792);
  box-shadow: 0 5px 16px rgba(107, 71, 0, .12);
  animation: psh-install-arrive .28s ease-out both;
}

.psh-install-card-text {
  margin-top: 3px;
  color: #6b5a31;
  line-height: 1.5;
}

.psh-install-card-action {
  min-height: 40px;
  padding: 0 16px;
  box-shadow: 0 3px 9px rgba(107, 71, 0, .16);
}

.psh-install-card-action:active {
  transform: scale(.97);
}

.psh-install-card-close {
  position: absolute;
  top: max(6px, env(safe-area-inset-top));
  right: max(8px, calc((100vw - 760px) / 2 + 8px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 71, 0, .06);
  color: #756744;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.psh-install-card-close:hover {
  background: rgba(107, 71, 0, .12);
  color: #3b2900;
}

.psh-install-card-close:active {
  transform: scale(.94);
}

@keyframes psh-install-arrive {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.psh-install-visible .catalog-tools,
.psh-install-visible .menu-nav-sticky {
  top: var(--psh-install-height, 0) !important;
}

@media (max-width: 520px) {
  .psh-install-card {
    margin: 0;
    padding: 11px 12px;
  }

  .psh-install-card-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .psh-install-card-copy {
    min-width: calc(100% - 56px);
    padding-right: 30px;
  }

  .psh-install-card-close {
    right: 8px;
  }

  .psh-install-card-action {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psh-install-card { animation: none; }
}
