/* Print Forge public brand overrides on the Ecoprint theme */

:root {
  --pf-primary: #ff6252;
  --pf-primary-dark: #e24f41;
  --pf-ink: #151515;
  --pf-muted: #6b7280;
}

/* Theme CSS starts `.page` at opacity:0 until a `.preloader` runs.
   Keep this so a missed preloader never blanks the site. */
.page {
  opacity: 1;
}

.rd-navbar-brand .brand img,
.rd-navbar-brand .brand-logo-dark,
.rd-navbar-brand .brand-logo-light,
.footer-classic-brand .brand img {
  height: 39px;
  width: auto;
  max-width: 180px;
}

.flash {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}
.flash li {
  max-width: 1200px;
  margin: 0 auto 8px;
  padding: 12px 16px;
  background: #fde8e8;
  border-left: 3px solid var(--pf-primary);
  color: #7f1d1d;
  font-size: 14px;
}
.flash li.success {
  background: #ecfdf5;
  border-left-color: #059669;
  color: #065f46;
}
.flash li.error,
.flash li.danger {
  background: #fee2e2;
  border-left-color: #b91c1c;
  color: #991b1b;
}

.form-wrap .errorlist,
.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: #b91c1c;
  font-size: 13px;
}

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11000;
  padding: 1rem 1.25rem;
  background: rgba(21, 21, 21, 0.96);
  border-top: 2px solid var(--pf-primary);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
}
.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-consent-text {
  flex: 1 1 420px;
  color: #d7dee3;
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: 0;
}
.cookie-consent-text-short {
  display: none;
}
.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--pf-primary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.footer-link-btn:hover {
  text-decoration: underline;
  color: var(--pf-primary-dark);
}
.cookie-consent-link {
  color: #ffd3ce;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent-link:hover {
  color: #fff;
}

.legal-prose {
  max-width: 42rem;
}
.legal-prose .legal-lead {
  font-size: 1.05rem;
  color: var(--pf-ink);
  margin-bottom: 1.75rem;
}
.legal-prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}
.legal-prose p {
  margin-bottom: 1rem;
  color: #4b5563;
  line-height: 1.65;
}
.legal-prose .legal-updated {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--pf-muted);
}

.footer-made-by {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7280;
}
.footer-made-by a {
  color: var(--pf-primary);
  text-decoration: underline;
}

.form-label-outside {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.product-figure {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-figure img,
.slick-product-figure img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.product-color-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.product-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d1d5db;
  display: inline-block;
}
.product-color-picker {
  margin: 8px 0 20px;
}
.product-color-label {
  margin: 0 0 10px;
  font-weight: 500;
  color: #151515;
}
.product-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-color-swatch {
  cursor: pointer;
  display: inline-flex;
}
.product-color-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.product-color-swatch span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d1d5db;
  display: block;
}
.product-color-swatch input:checked + span,
.product-color-swatch input:focus-visible + span {
  box-shadow: 0 0 0 2px var(--pf-primary);
}

.product-gallery-layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 2px solid #dddddd;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.product-gallery-thumbs button.active,
.product-gallery-thumbs button[aria-selected="true"] {
  border-color: var(--pf-primary);
}
.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-gallery-thumb-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #151515;
  background: #f5f5f5;
}
.product-gallery-stage {
  min-width: 0;
}
.product-media-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}
.stl-viewer {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 420px;
  background: #f5f5f5;
  border: 1px solid #dddddd;
  overflow: hidden;
}
.stl-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.stl-viewer-status {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b7280;
  pointer-events: none;
}
.stl-viewer.is-error .stl-viewer-status {
  color: #991b1b;
}

@media (max-width: 767px) {
  .product-gallery-layout {
    grid-template-columns: 1fr;
  }
  .product-gallery-stage {
    order: -1;
  }
  .product-gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    padding: 0.625rem 0.75rem;
    padding-bottom: max(0.625rem, env(safe-area-inset-bottom));
  }
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }
  .cookie-consent-text-short {
    display: inline;
  }
  .cookie-consent-text-full {
    display: none;
  }
  .cookie-consent-text {
    flex: none;
    font-size: 0.8125rem;
    line-height: 1.35;
  }
  .cookie-consent-actions {
    width: 100%;
  }
}
