/* V7: crisp stamp-card rendering, quieter homepage artwork and in-app refresh. */

.public-home-stampcard > p {
  display: none !important;
}

.public-home-stampcard-object {
  overflow: hidden;
  border-radius: 3px;
  filter: none !important;
  box-shadow: 0 20px 34px rgba(24, 31, 72, .18);
}

.public-home-stampcard-object img,
.kiosk-stampcard-object img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  object-fit: contain;
}

.points-balance-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.card-refresh-button {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(5, 5, 5, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 7px 20px rgba(21, 42, 74, .06);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card-refresh-button:hover {
  transform: translateY(-1px);
  border-color: rgba(5, 5, 5, .2);
  box-shadow: 0 10px 24px rgba(21, 42, 74, .1);
}

.card-refresh-button:active {
  transform: scale(.97);
}

.card-refresh-button:disabled {
  cursor: wait;
  opacity: .76;
}

.card-refresh-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
  transform-origin: 50% 50%;
}

.card-refresh-button.is-refreshing svg {
  animation: pelicanCardRefresh .72s linear infinite;
}

.card-refresh-button.is-success {
  border-color: rgba(15, 106, 67, .2);
  background: rgba(207, 232, 213, .72);
  color: var(--success);
  animation: pelicanRefreshSuccess .46s cubic-bezier(.22, .61, .36, 1) both;
}

.card-refresh-button.is-error {
  border-color: rgba(180, 35, 24, .2);
  background: rgba(180, 35, 24, .06);
  color: var(--danger);
}

@keyframes pelicanCardRefresh {
  to { transform: rotate(360deg); }
}

@keyframes pelicanRefreshSuccess {
  0% { transform: scale(.94); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@media (max-width: 460px) {
  .points-balance-actions {
    align-self: stretch;
    flex-direction: column;
    align-items: flex-end;
  }

  .card-refresh-button {
    width: 40px;
    min-width: 40px;
    padding: 8px;
  }

  .card-refresh-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-refresh-button,
  .card-refresh-button svg {
    animation: none !important;
    transition: none !important;
  }
}
