/* Store promotion popup on the code page. Uses the --accent tokens defined in customer.css. */
.store-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.55);
}

.store-popup[hidden] {
  display: none;
}

.store-popup-dialog {
  width: 100%;
  max-width: 360px;
  padding: 26px 22px 18px;
  border-radius: 20px;
  background: var(--white);
  color: var(--text-main);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.3);
  text-align: center;
}

.store-popup-dialog:focus {
  outline: none;
}

.store-popup-dialog:focus-visible {
  outline: 3px solid var(--accent-soft);
}

.store-popup-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.store-popup-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.4;
  word-break: keep-all;
}

.store-popup-desc {
  margin: 0 0 20px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
}

.store-popup-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.store-popup-link:hover {
  background: var(--accent-dark);
}

.store-popup-link:focus-visible,
.store-popup-secondary:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.store-popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.store-popup-secondary {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-sub);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.store-popup-secondary:hover {
  background: #F1F3F5;
}

@media (max-width: 360px) {
  .store-popup {
    padding: 12px;
  }

  .store-popup-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .store-popup-dialog {
    animation: store-popup-in 160ms ease-out;
  }

  @keyframes store-popup-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}
