.photolabpro-grid {
  display: grid;
  grid-template-columns: repeat(var(--photolabpro-grid-columns, auto-fill), minmax(240px, 1fr));
  gap: 22px;
}

@media (max-width: 760px) {
  .photolabpro-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.photolabpro-card {
  border: 1px solid #d7dce2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 20, 30, 0.06);
}

.photolabpro-card-media {
  position: relative;
}

.photolabpro-thumb {
  display: block;
  width: 100%;
  aspect-ratio: var(--photolabpro-card-aspect, 4 / 3);
  padding: 0;
  border: 0;
  background: #e8ecf1;
  cursor: pointer;
}

.photolabpro-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.photolabpro-thumb:hover img,
.photolabpro-thumb:focus-visible img {
  transform: scale(1.025);
}

.photolabpro-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.photolabpro-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2933;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(10, 20, 30, 0.18);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.photolabpro-icon-button:hover,
.photolabpro-icon-button:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(10, 20, 30, 0.24);
}

.photolabpro-icon-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.photolabpro-favourite-button.is-active {
  color: #c0264f;
}

.photolabpro-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photolabpro-favourite-button.is-active .photolabpro-icon {
  fill: currentColor;
}

/* Own screen-reader class: templates without Bootstrap don't define .visually-hidden. */
.photolabpro-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.photolabpro-favourite-button.has-error {
  color: #b42318;
  animation: photolabpro-icon-shake 180ms ease-in-out 2;
}

@keyframes photolabpro-icon-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(2px);
  }
}

.photolabpro-card-footer {
  padding: 16px 18px 18px;
}

.photolabpro-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #2f5f46;
  border-radius: 6px;
  background: #3f7d55;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.photolabpro-button:hover,
.photolabpro-button:focus-visible {
  border-color: #254d38;
  background: #326545;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(63, 125, 85, 0.18);
}

.photolabpro-button-secondary {
  border-color: #b7c4d3;
  background: #f6f8fb;
  color: #183153;
}

.photolabpro-button-secondary:hover,
.photolabpro-button-secondary:focus-visible {
  border-color: #8ea1b9;
  background: #e9eef5;
  color: #183153;
  box-shadow: 0 0 0 3px rgba(24, 49, 83, 0.12);
}

.photolabpro-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.photolabpro-card-heading strong {
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.photolabpro-card-footer p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: #58606a;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.photolabpro-details-link {
  flex: 0 0 auto;
  font-size: 0.92rem;
}

.photolabpro-download-link {
  margin-top: 14px;
}

.photolabpro-success {
  max-width: 680px;
  margin: 48px auto;
  padding: 40px;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 36px rgba(10, 20, 30, 0.1);
}

.photolabpro-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #e8f5ec;
  color: #2f7045;
  font-size: 2rem;
  font-weight: 800;
}

.photolabpro-success h1 {
  margin: 0 0 12px;
}

.photolabpro-success-image {
  margin: 22px 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.photolabpro-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.photolabpro-success-help {
  margin: 24px 0 0;
  color: #66717e;
  font-size: 0.92rem;
}

.photolabpro-download-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.photolabpro-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.photolabpro-card-title a {
  color: inherit;
  text-decoration: none;
}

.photolabpro-card-title a:hover,
.photolabpro-card-title a:focus-visible {
  text-decoration: underline;
}

.photolabpro-buy-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.photolabpro-price {
  font-weight: 700;
}

.photolabpro-buy-options .photolabpro-unavailable {
  font-weight: 400;
  color: #666;
}

.photolabpro-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(12, 14, 18, 0.94);
  color: #fff;
  opacity: 0;
  transition: opacity 160ms ease;
}

.photolabpro-lightbox[hidden] {
  display: none;
}

.photolabpro-lightbox.is-open {
  opacity: 1;
}

.photolabpro-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 6px;
}

.photolabpro-lightbox-counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.photolabpro-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 76px;
}

.photolabpro-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: opacity 160ms ease;
}

.photolabpro-lightbox.is-loading .photolabpro-lightbox-stage img {
  opacity: 0.35;
}

.photolabpro-lightbox-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.photolabpro-lightbox-icon:hover,
.photolabpro-lightbox-icon:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.22);
}

.photolabpro-lightbox-icon[hidden] {
  display: none;
}

.photolabpro-lightbox-icon .photolabpro-icon {
  width: 22px;
  height: 22px;
}

.photolabpro-lightbox-prev,
.photolabpro-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.photolabpro-lightbox-prev {
  left: 16px;
}

.photolabpro-lightbox-next {
  right: 16px;
}

.photolabpro-lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  width: min(100%, 1100px);
  margin: 0 auto;
  /* Clear the phone's home indicator and any bar fixed to the bottom of the
     page (cookie notice, chat button, debug bar), measured by gallery.js. */
  padding: 14px 18px calc(18px + max(env(safe-area-inset-bottom, 0px), var(--photolabpro-bottom-inset, 0px)));
}

.photolabpro-lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  min-width: 0;
}

.photolabpro-lightbox-caption strong {
  font-size: 1.05rem;
}

.photolabpro-lightbox-caption span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.photolabpro-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.photolabpro-lightbox-actions [hidden] {
  display: none !important;
}

.photolabpro-button-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.photolabpro-button-ghost:hover,
.photolabpro-button-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.photolabpro-lightbox .photolabpro-cart-button.is-added,
.photolabpro-lightbox .photolabpro-cart-button:disabled {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 700px) {
  .photolabpro-lightbox-stage {
    padding: 0 8px;
  }

  .photolabpro-lightbox-prev,
  .photolabpro-lightbox-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.45);
  }

  .photolabpro-lightbox-prev {
    left: 12px;
  }

  .photolabpro-lightbox-next {
    right: 12px;
  }

  .photolabpro-lightbox-bar {
    justify-content: center;
    text-align: center;
  }

  .photolabpro-lightbox-caption,
  .photolabpro-lightbox-actions {
    justify-content: center;
    width: 100%;
  }
}

.photolabpro-detail {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.photolabpro-detail-back {
  grid-column: 1 / -1;
  margin: 0;
}

.photolabpro-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.photolabpro-detail-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.photolabpro-detail-zoom:focus-visible {
  outline: 3px solid #3f7d55;
  outline-offset: 3px;
}

.photolabpro-detail-body h1 {
  margin-top: 0;
}

.photolabpro-detail-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
}

.photolabpro-detail-meta dt {
  font-weight: 700;
}

.photolabpro-detail-meta dd {
  margin: 0;
}

.photolabpro-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

@media (max-width: 800px) {
  .photolabpro-detail {
    grid-template-columns: 1fr;
  }
}

.photolabpro-locked {
  max-width: 520px;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.photolabpro-unlock-form {
  display: grid;
  gap: 10px;
}

.photolabpro-unlock-form input {
  min-height: 42px;
  padding: 8px 10px;
}

.photolabpro-unlock-form button {
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
}

/* ---- Cart (1.1.0) ------------------------------------------------------ */

.photolabpro-cart-form {
  display: inline-flex;
  margin: 0;
}

.photolabpro-cart-button.is-added,
.photolabpro-cart-button:disabled {
  border-color: #b7c4d3;
  background: #eef2f6;
  color: #4b5b70;
  cursor: default;
  box-shadow: none;
}

.photolabpro-cart-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}

.photolabpro-cart-bar[hidden] {
  display: none;
}

.photolabpro-cart-bar a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #b7c4d3;
  border-radius: 999px;
  background: #f6f8fb;
  color: #183153;
  font-weight: 700;
  text-decoration: none;
}

.photolabpro-cart-bar a:hover,
.photolabpro-cart-bar a:focus-visible {
  border-color: #8ea1b9;
  background: #e9eef5;
}

.photolabpro-bundle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #cfe0d5;
  border-radius: 10px;
  background: #f3f9f5;
}

.photolabpro-bundle p {
  margin: 0;
}

.photolabpro-cart,
.photolabpro-order {
  max-width: 760px;
  margin: 0 auto;
}

.photolabpro-cart-lines,
.photolabpro-order-downloads {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.photolabpro-cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e3e8ee;
}

.photolabpro-cart-line img,
.photolabpro-cart-gallery-icon {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.photolabpro-cart-gallery-icon {
  display: grid;
  place-items: center;
  background: #eef2f6;
  color: #4b5b70;
  font-size: 1.6rem;
}

.photolabpro-cart-line-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.photolabpro-cart-line-text span {
  color: #5a6778;
  font-size: 0.9rem;
}

.photolabpro-cart-price {
  font-weight: 700;
  white-space: nowrap;
}

.photolabpro-cart-total {
  display: flex;
  justify-content: space-between;
  margin: 0 0 18px;
  font-size: 1.15rem;
}

.photolabpro-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.photolabpro-cart-actions form {
  margin: 0;
}

.photolabpro-order-summary {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  text-align: left;
}

.photolabpro-order-summary td,
.photolabpro-order-summary th {
  padding: 8px 0;
  border-bottom: 1px solid #e3e8ee;
}

.photolabpro-order-summary td:last-child,
.photolabpro-order-summary th:last-child {
  text-align: right;
  white-space: nowrap;
}

.photolabpro-order-summary small {
  display: block;
  color: #5a6778;
}

.photolabpro-order-downloads li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e3e8ee;
  text-align: left;
}

@media (max-width: 600px) {
  .photolabpro-cart-line {
    grid-template-columns: 56px 1fr auto;
  }

  .photolabpro-cart-line img,
  .photolabpro-cart-gallery-icon {
    width: 56px;
    height: 42px;
  }

  .photolabpro-cart-line form {
    grid-column: 2 / -1;
  }
}

/* ---- Template-proofing ---------------------------------------------------
   Site templates often style headings and links with selectors such as
   ".content h3" or ".content a:not(.btn)", which beat a single class. These
   few properties are forced so cards and buttons look the same on any template. */

.photolabpro-card-title {
  margin: 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
}

.photolabpro-card-title a,
.photolabpro-cart-bar a,
.photolabpro-button,
.photolabpro-icon-button,
.photolabpro-lightbox a {
  text-decoration: none !important;
}

.photolabpro-card-title a:hover,
.photolabpro-card-title a:focus-visible {
  text-decoration: underline !important;
}

/* ---- Print ordering (1.2.0) ------------------------------------------ */

.photolabpro-print-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100010; /* above the lightbox */
  display: flex;
  justify-content: flex-end;
  background: rgba(12, 16, 22, 0.55);
  opacity: 0;
  transition: opacity 160ms ease;
}

.photolabpro-print-backdrop.is-open {
  opacity: 1;
}

.photolabpro-print-backdrop[hidden] {
  display: none !important;
}

.photolabpro-print {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  color: #1f2933;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(24px);
  transition: transform 180ms ease;
  font-size: 0.95rem;
  line-height: 1.4;
}

.photolabpro-print-backdrop.is-open .photolabpro-print {
  transform: none;
}

.photolabpro-print-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e3e8ee;
}

.photolabpro-print-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.photolabpro-print-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d7dce2;
  border-radius: 50%;
  background: #fff;
  color: #1f2933;
  cursor: pointer;
}

.photolabpro-print-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.photolabpro-print-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 8px;
  overscroll-behavior: contain;
}

/* Preview stage: the print as the product, cropped by dragging. */
.photolabpro-print-stage {
  margin: 0 0 16px;
  padding: 10px;
  border-radius: 10px;
  background: #e9ecef;
}

.photolabpro-print-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.photolabpro-print-tools figcaption {
  color: #5a6778;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.photolabpro-print-croptools {
  justify-content: flex-start;
  margin-top: 8px;
}

.photolabpro-print-croptools[hidden] {
  display: none !important;
}

.photolabpro-print-seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #c9d1db;
  border-radius: 7px;
  background: #fff;
}

.photolabpro-print-seg button,
.photolabpro-print-rotate {
  min-height: 30px;
  padding: 3px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #39424e;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.photolabpro-print-seg button[aria-pressed="true"] {
  background: #3f7d55;
  color: #fff;
}

.photolabpro-print-rotate {
  border: 1px solid #c9d1db;
  background: #fff;
}

.photolabpro-print-zoom {
  display: inline-flex;
  flex: 1 1 120px;
  align-items: center;
  gap: 8px;
  color: #39424e;
  font-size: 0.82rem;
  font-weight: 600;
}

.photolabpro-print-zoom input {
  flex: 1;
  min-width: 60px;
  accent-color: #3f7d55;
}

.photolabpro-print-zoom input:disabled {
  opacity: 0.4;
}

.photolabpro-print-area {
  position: relative;
  height: 250px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe3e7;
}

.photolabpro-print-info {
  margin: 8px 2px 0;
  color: #5a6778;
  font-size: 0.8rem;
}

.photolabpro-print-info.is-warning {
  color: #9b2c1f;
  font-weight: 700;
}

.photolabpro-print-obj {
  position: absolute;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.photolabpro-print-obj.is-framed {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.photolabpro-print-obj.is-panel {
  border-radius: 3px;
  background: transparent;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.photolabpro-print-obj.is-canvas,
.photolabpro-print-obj.is-none {
  background: transparent;
}

.photolabpro-print-mat {
  position: absolute;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.photolabpro-print-art {
  position: absolute;
  overflow: hidden;
  background: #fff;
  touch-action: none;
}

.photolabpro-print-obj.is-framed .photolabpro-print-art {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.photolabpro-print-obj.is-panel .photolabpro-print-art {
  border-radius: 3px;
}

.photolabpro-print-obj.is-interactive .photolabpro-print-art {
  cursor: grab;
}

.photolabpro-print-obj.is-interactive.is-dragging .photolabpro-print-art {
  cursor: grabbing;
}

.photolabpro-print-obj.is-fit .photolabpro-print-art {
  cursor: default;
}

.photolabpro-print-art:focus-visible {
  outline: 3px solid #3f7d55;
  outline-offset: 2px;
}

.photolabpro-print-photo,
.photolabpro-print-sheen {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  pointer-events: none;
}

.photolabpro-print-edge {
  position: absolute;
  overflow: hidden;
}

.photolabpro-print-sheen.is-gloss { background: linear-gradient(128deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 30%, rgba(255,255,255,0) 42%); }
.photolabpro-print-sheen.is-lustre { background: linear-gradient(128deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 40%); }
.photolabpro-print-sheen.is-metallic { background: linear-gradient(118deg, rgba(225,233,242,.34) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,.16) 58%, rgba(255,255,255,0) 72%); }
.photolabpro-print-sheen.is-pearl { background: linear-gradient(120deg, rgba(255,236,248,.24), rgba(222,240,255,.14) 45%, rgba(255,255,255,0) 70%); }
.photolabpro-print-sheen.is-acrylic { background: linear-gradient(130deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.1) 26%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08) 100%); }
.photolabpro-print-sheen.is-glass { background: linear-gradient(130deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 35%); }

.photolabpro-print-wall {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e4ded3, #efebe4 30%);
}

.photolabpro-print-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #b9a184;
}

.photolabpro-print-floor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.12);
}

.photolabpro-print-sofa {
  position: absolute;
}

.photolabpro-print-sofa svg {
  display: block;
  width: 100%;
  height: 100%;
}

.photolabpro-print-dim {
  position: absolute;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
  color: #2b2f2c;
  font-size: 11px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.photolabpro-print-step {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.photolabpro-print-step legend {
  margin: 0 0 8px;
  padding: 0;
  float: none;
  width: auto;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a6778;
}

.photolabpro-print-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 10px 12px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.photolabpro-print-choice:hover {
  border-color: #9fb0c2;
}

.photolabpro-print-choice.is-selected {
  border-color: #3f7d55;
  box-shadow: 0 0 0 1px #3f7d55;
  background: #f4faf6;
}

.photolabpro-print-choice.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.photolabpro-print-choice input {
  flex: none;
  margin: 0;
  accent-color: #3f7d55;
}

.photolabpro-print-choice-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.photolabpro-print-choice-text small {
  color: #5a6778;
  font-size: 0.82rem;
}

.photolabpro-print-choice-price {
  flex: none;
  font-weight: 700;
  white-space: nowrap;
}

.photolabpro-print-group.is-swatch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.photolabpro-print-group.is-swatch legend {
  width: 100%;
}

.photolabpro-print-group.is-swatch .photolabpro-print-choice {
  margin: 0;
  padding: 7px 11px;
}

.photolabpro-print-swatch {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

.photolabpro-print-swatch.is-empty {
  background: repeating-linear-gradient(45deg, #fff 0 3px, #e3e8ee 3px 6px);
}

.photolabpro-print-badge {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.photolabpro-print-badge.is-excellent { background: #e3f3e8; color: #24613a; }
.photolabpro-print-badge.is-good { background: #fff4d6; color: #7a5600; }
.photolabpro-print-badge.is-small { background: #fde4e1; color: #9b2c1f; }

.photolabpro-print-note {
  margin: 6px 0 0;
  color: #5a6778;
  font-size: 0.8rem;
}

.photolabpro-print-select {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #b7c4d3;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.photolabpro-print-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #b7c4d3;
  border-radius: 6px;
  overflow: hidden;
}

.photolabpro-print-stepper button {
  width: 40px;
  border: 0;
  background: #f6f8fb;
  color: #183153;
  font-size: 1.1rem;
  cursor: pointer;
}

.photolabpro-print-stepper input {
  width: 56px;
  border: 0;
  border-left: 1px solid #d7dce2;
  border-right: 1px solid #d7dce2;
  text-align: center;
  font: inherit;
  -moz-appearance: textfield;
}

.photolabpro-print-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 18px calc(14px + max(env(safe-area-inset-bottom, 0px), var(--photolabpro-bottom-inset, 0px)));
  border-top: 1px solid #e3e8ee;
  background: #fafbfc;
}

.photolabpro-print-total {
  display: grid;
}

.photolabpro-print-total strong {
  font-size: 1.3rem;
}

.photolabpro-print-total small {
  color: #5a6778;
}

.photolabpro-print-footer .photolabpro-button {
  min-width: 150px;
}

.photolabpro-print-footer .photolabpro-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.photolabpro-print-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.88rem;
}

.photolabpro-print-status:empty {
  display: none;
}

@media (max-width: 560px) {
  .photolabpro-print {
    width: 100%;
  }

  .photolabpro-print-area {
    height: 210px;
  }
}

/* Cart: prints and delivery */
.photolabpro-cart-section {
  margin: 22px 0 8px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6778;
}

.photolabpro-cart-line.is-print {
  grid-template-columns: 72px 1fr auto auto auto;
}

.photolabpro-cart-crop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.photolabpro-cart-qty {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.photolabpro-cart-qty input {
  width: 64px;
  min-height: 38px;
  padding: 4px 6px;
  border: 1px solid #b7c4d3;
  border-radius: 6px;
  text-align: center;
}

.photolabpro-cart-delivery {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
}

.photolabpro-cart-delivery legend {
  padding: 0 4px;
  font-weight: 700;
}

.photolabpro-cart-delivery label {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  cursor: pointer;
}

.photolabpro-cart-delivery label span:first-of-type {
  flex: 1;
}

.photolabpro-cart-subtotals {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.photolabpro-cart-subtotals li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: #39424e;
}

.photolabpro-cart-tax {
  margin: -10px 0 18px;
  color: #5a6778;
  font-size: 0.88rem;
  text-align: right;
}

.photolabpro-cart-add-prints {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #2f5f46;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .photolabpro-cart-line.is-print {
    grid-template-columns: 72px 1fr auto;
  }

  .photolabpro-cart-line.is-print .photolabpro-cart-qty {
    grid-column: 2;
  }
}

/* Order page: print status */
.photolabpro-print-jobs {
  margin: 24px 0;
  text-align: left;
}

.photolabpro-print-job {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
}

.photolabpro-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.photolabpro-timeline li {
  flex: 1 1 90px;
  padding: 6px 8px 0;
  border-top: 3px solid #d7dce2;
  color: #7a8696;
}

.photolabpro-timeline li.is-done {
  border-top-color: #3f7d55;
  color: #1f2933;
  font-weight: 700;
}
