[hidden] { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }
.assessment-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  height: 100%;
  max-height: none;
  max-width: none;
  margin: 0;
  padding: 0;
  background: white;
  color: #161616;
  border: 0;
}
.assessment-drawer::backdrop,
.assessment-lightbox::backdrop,
.room-preview::backdrop { background: rgb(0 0 0 / 45%); }
.assessment-drawer > .drawer {
  display: block;
  position: relative;
  visibility: visible;
  opacity: 1;
  transform: none;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 24px;
  overflow: auto;
}
.assessment-cart { display: grid; gap: 20px; padding-block: 26px; }
.assessment-cart h2 { font-size: 1.4rem; font-weight: 700; }
.assessment-cart article { display: flex; align-items: center; gap: 16px; }
.assessment-cart article img { width: 96px; border-radius: 8px; }
.assessment-quantity { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.assessment-quantity button { border: 1px solid #ddd; width: 32px; height: 32px; }
.assessment-subtotal { border-top: 1px solid #ddd; padding-top: 12px; font-weight: 700; }
.assessment-search-results { padding: 1rem; }
.product-ai-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 50% !important;
  background:
    linear-gradient(#fdfdfc, #fdfdfc) padding-box,
    conic-gradient(from 220deg, #8235eb, #3268fa, #1baea9, #be48dc, #8235eb) border-box;
  box-shadow: 0 0 0 3px rgb(130 53 235 / 8%);
  color: #58249e;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.product-ai-badge:hover {
  box-shadow: 0 0 0 4px rgb(130 53 235 / 16%), 0 3px 12px rgb(78 39 144 / 22%);
}
.product-ai-badge:focus-visible,
.room-preview :focus-visible,
.room-preview__upload:focus-within {
  outline: 2px solid #6a35c2;
  outline-offset: 3px;
}
.room-preview {
  position: fixed;
  inset: auto;
  top: var(--room-preview-top, 12px);
  left: var(--room-preview-left, 12px);
  width: var(--room-preview-width, calc(100% - 24px));
  max-width: none;
  max-height: var(--room-preview-height, calc(100% - 24px));
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #eae5f2;
  border-radius: 16px;
  background: #fff;
  color: #242229;
  box-shadow: 0 16px 46px rgb(28 19 43 / 22%);
}
.room-preview__surface {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 3vw, 22px);
}
.room-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.room-preview__header h2 {
  font-size: clamp(17px, 2.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}
.room-preview__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #f3eff8;
}
.room-preview__intro {
  font-size: 15px;
  line-height: 1.45;
}
.room-preview__upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #56209b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.room-preview__upload:hover { background: #45167f; }
.room-preview__upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.room-preview__privacy,
.room-preview__status,
.room-preview__result p {
  color: #595462;
  font-size: 13px;
  line-height: 1.4;
}
.room-preview__status[data-error] { color: #a32236; }
.room-preview__result {
  display: grid;
  gap: 8px;
}
.room-preview__result canvas {
  display: block;
  max-width: 100%;
  max-height: min(56vh, 500px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
}
.room-preview__result canvas:active { cursor: grabbing; }
.room-preview__size {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.room-preview__size input {
  width: 100%;
  min-height: 28px;
  accent-color: #6a35c2;
}
.shopify-section--main-product .product-info__title {
  margin-bottom: 18px !important;
  font-weight: 600;
}
.product-info__title-break { display: block; }
@media (max-width: 749px) {
  .product-ai-badge { width: 42px; }
}
@media (max-width: 999px) {
  .shopify-section--main-product .product-info__title {
    margin-bottom: 12px !important;
    padding-top: 16px;
  }
}
.product-gallery {
  gap: 12px;
}
.product-gallery__photo { position: relative; }
.product-gallery .product-gallery__featured {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 0 !important;
  background: #f4f4f4;
}
@media (min-width: 1000px) {
  .product-gallery .product-gallery__featured { border-radius: 2px !important; }
}
.product-gallery__featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.product-gallery__magnifier,
.product-gallery__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 12%);
  background: #fff;
}
.product-gallery__magnifier {
  position: absolute;
  inset: auto 12px 12px auto;
}
.product-gallery__rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.product-gallery .product-gallery__thumbnail-list {
  position: relative;
  grid-auto-columns: clamp(52px, 12vw, 64px);
  gap: 8px;
  padding: 2px;
}
.product-gallery__thumbnail {
  scroll-snap-align: center;
}
.product-gallery__thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 2px;
}
.product-gallery__thumbnail:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
@media (prefers-reduced-motion: no-preference) {
  .product-gallery__thumbnail-list { scroll-behavior: smooth; }
}
.assessment-lightbox { background: transparent; color: white; border: 0; max-width: 95vw; }
.assessment-lightbox > div { position: relative; display: flex; align-items: center; gap: 10px; }
.assessment-lightbox img { max-width: min(78vw, 950px); max-height: 88vh; object-fit: contain; background: white; }
.assessment-lightbox button { min-width: 30px; font-size: 32px; }
.assessment-lightbox [data-close] { position: absolute; top: 0; right: 4px; }
.assessment-cart { padding-inline: 24px; }
a:not([href]) { cursor: inherit; }

.ph .ph-top { min-height: 92px; }
@media (min-width: 1000px) {
  .ph .ph-top {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 440px) minmax(0, 1fr);
  }
}
.ph .ph-search,
.pm .pm-search {
  box-shadow: inset 0 1px 1px #fff, 0 3px 12px rgb(24 32 42 / 13%);
}
.ph .ph-search:hover,
.pm .pm-search:hover {
  box-shadow: inset 0 1px 1px #fff, 0 4px 14px rgb(24 32 42 / 18%);
}
@media (max-width: 999px) {
  .ph .ph-top { min-height: 82px; }
  .ph .ph-account { display: none; }
}
.ph-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ph .ph-mobile-toggle { display: flex; }
.ph .ph-account-trigger {
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.service-strip {
  isolation: isolate;
  background: #1c211a;
  color: #fff;
}
.service-strip__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  margin: 0 auto;
  padding: 4px 16px;
  list-style: none;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.service-strip__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-strip__list img {
  flex: none;
  object-fit: contain;
  filter: grayscale(1) invert(1) contrast(1.2);
  mix-blend-mode: screen;
}
@media (max-width: 999px) {
  .service-strip__list img {
    filter: url(#service-icon-on-dark);
    mix-blend-mode: normal;
  }
}
@media (max-width: 599px) {
  .service-strip__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    padding-inline: 8px;
    font-size: 10.5px;
    text-align: center;
  }
  .service-strip__list li {
    flex-direction: column;
    gap: 3px;
  }
  .service-strip__list img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .service-strip__list img {
    animation: service-icon-bounce 3.2s ease-in-out 2;
  }
  .service-strip__list li:nth-child(2) img { animation-delay: .4s; }
  .service-strip__list li:nth-child(3) img { animation-delay: .8s; }
}
@keyframes service-icon-bounce {
  0%, 45%, 100% { transform: translateY(0); }
  22% { transform: translateY(-3px); }
}
.assessment-drawer:has(> #pearl-navigation) {
  inset: 0 auto 0 0;
  width: min(100%, 440px);
}
.assessment-drawer > #pearl-navigation.pm {
  position: relative;
  inset: auto !important;
  width: 100%;
  height: 100%;
  padding: 0;
}
.pm-utilities { align-items: start; }
.pm-assignment-links {
  display: grid;
  gap: 6px;
  margin: 6px 0 0;
  padding-inline-start: 12px;
  list-style: none;
}
.pm-utilities .pm-assignment-links a {
  justify-content: flex-start;
  min-height: 36px;
  padding-inline: 12px;
}
.pm-utilities .pm-assignment-links a[aria-current="page"] {
  background: #e8ecdf;
  font-weight: 700;
}

@media (max-width: 420px) {
  .ph-brand { gap: 6px; }
}
