/* Product-page CSS split from pages/css/global.css. Loaded via earn_page_css_product on WooCommerce product pages. */
@keyframes earn-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.woocommerce-product-gallery.wc-img-loading
  .woocommerce-product-gallery__wrapper {
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.woocommerce-product-gallery.wc-img-loading
  .woocommerce-product-gallery__wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%
  );
  animation: earn-shimmer 1.6s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}
.woocommerce-product-gallery.wc-img-loading .wp-post-image {
  opacity: 0 !important;
  transition: opacity 0.3s;
}
@media (max-width: 768px) {
  body #earnGiftCardTpl .earnGC__left,
  body #earnGiftCardTpl .earnPinWrap {
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
  body #earnGiftCardTpl .earnPinCard {
    width: 101.3% !important;
    max-width: 101.3% !important;
    margin-left: -0.65% !important;
    margin-right: -0.65% !important;
    aspect-ratio: 1.58 / 1 !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden !important;
  }
  body #earnGiftCardTpl .earnPinImg {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
  }
  body #earnGiftCardTpl .earnPinSkeleton {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* Extracted from product.html. */
/* -- Staging product page -- */
html,
body {
  background: #000 !important;
}
/* Loading skeleton */
@keyframes earn-prod-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.earn-prod-skel {
  max-width: 1100px;
  margin: 48px auto 40px;
  padding: 0 40px;
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
  box-sizing: border-box;
}
@media (max-width: 840px) {
  .earn-prod-skel {
    flex-direction: column;
    padding: 0 20px;
    margin: 24px auto;
    gap: 28px;
  }
}
.earn-prod-skel__img {
  flex: 0 0 420px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
@media (max-width: 840px) {
  .earn-prod-skel__img {
    flex: none;
    width: 100%;
  }
}
.earn-prod-skel__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.earn-prod-skel__bar {
  border-radius: 8px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.earn-prod-skel__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.05) 60%, transparent 100%);
  animation: earn-prod-shimmer 1.6s ease-in-out infinite;
}
.earn-prod-skel__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.05) 60%, transparent 100%);
  animation: earn-prod-shimmer 1.6s ease-in-out infinite;
}
.earn-prod-skel__denoms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 360px;
  margin-top: 4px;
}
.earn-prod-error {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #aaa;
  padding: 0 20px;
}
.earn-prod-error h2 {
  color: #fff;
  margin-bottom: 12px;
}
.earn-prod-error a {
  color: #59CC80;
  text-decoration: none;
}
.earn-prod-error a:hover {
  text-decoration: underline;
}
/* -- Custom product header (matches production layout) -- */
.earn-stg-hdr {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 48px auto 40px;
  padding: 0 40px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  box-sizing: border-box;
}
@media (max-width: 840px) {
  .earn-stg-hdr {
    flex-direction: column;
    padding: 0 20px;
    margin: 24px auto;
    gap: 28px;
  }
}
.earn-stg-hdr__img {
  flex: 0 0 420px;
}
@media (max-width: 840px) {
  .earn-stg-hdr__img {
    flex: none;
    width: 100%;
  }
}
.earn-stg-hdr__img img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.earn-stg-hdr__info {
  flex: 1;
  min-width: 0;
}
.earn-stg-hdr__title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
  font-family: Inter, ui-sans-serif, sans-serif;
}
@media (max-width: 840px) {
  .earn-stg-hdr__title {
    font-size: 26px;
  }
}
.earn-stg-hdr__desc {
  font-size: 15px;
  color: #888;
  margin: 0 0 24px;
  line-height: 1.6;
  font-family: ui-sans-serif, sans-serif;
}
.earn-stg-hdr__label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  font-family: Inter, ui-sans-serif, sans-serif;
}
.earn-stg-hdr__denoms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 360px;
}
@media (max-width: 840px) {
  .earn-stg-hdr__denoms {
    max-width: none;
  }
  .earn-prod-skel__denoms {
    max-width: none;
  }
}
.earn-stg-hdr__denom {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: default;
  transition: background 0.15s, border-color 0.15s;
  font-family: Inter, ui-sans-serif, sans-serif;
}
.earn-stg-hdr__denom:hover {
  background: #252525;
  border-color: rgba(255, 255, 255, 0.2);
}
.earn-stg-hdr__denom-price {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.earn-stg-hdr__denom-pts {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}
.wc-block-store-notices {
  display: none !important;
}
#earnDetailsTiles,
.earnAccordion-wrap,
#earnAccordion {
  display: block !important;
  visibility: visible !important;
}
