.giftcards-page {
  padding: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.giftcards-page header {
  position: fixed;
  top: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter));
}

.giftcards-main {
  flex: 1;
  padding-top: 88px;
  min-height: 100svh;
}

.giftcards-sdk-container {
  position: relative;
  width: 100%;
  height: calc(100svh - 88px);
  min-height: 520px;
  background: var(--gray-50);
  overflow: hidden;
}

.giftcards-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
  background: var(--white);
}

.giftcards-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  text-align: center;
  padding: var(--gutter);
  background: var(--gray-50);
}

.giftcards-overlay[hidden],
.giftcards-iframe[hidden] {
  display: none !important;
}

.giftcards-loading p,
.giftcards-error p {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}

.giftcards-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: giftcards-spin 0.8s linear infinite;
}

@keyframes giftcards-spin {
  to { transform: rotate(360deg); }
}

.giftcards-error button {
  border: none;
  cursor: pointer;
}

.giftcards-back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.giftcards-back-link:hover {
  text-decoration: underline;
}

.nav-links a[aria-current="page"] {
  background: var(--white);
  color: var(--accent);
}

.giftcards-phone-gate {
  max-width: 420px;
  margin: 0 auto;
}

.giftcards-phone-gate h2 {
  font-size: 22px;
  font-weight: 800;
}

.giftcards-phone-gate p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}

.giftcards-phone-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.giftcards-phone-form label {
  font-size: 13px;
  font-weight: 600;
}

.giftcards-phone-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font: inherit;
}

.giftcards-phone-form button {
  margin-top: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .giftcards-page header .nav-links {
    display: none;
  }

  .giftcards-main {
    padding-top: 72px;
  }

  .giftcards-sdk-container {
    height: calc(100svh - 72px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .giftcards-spinner {
    animation: none;
    border-top-color: var(--gray-400);
  }
}
