/* Snap Shades photo search. Uses WoodMart's primary colour when available. */
.snap-ps-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.snap-ps-wrap { margin-top: 10px; }
.snap-ps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; padding: 10px 16px;
  border: 2px solid var(--wd-primary-color, #111); border-radius: 8px;
  background: #fff; color: var(--wd-primary-color, #111);
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
}
.snap-ps-btn:hover, .snap-ps-btn:focus-visible { background: var(--wd-primary-color, #111); color: #fff; }

html.snap-ps-lock, html.snap-ps-lock body { overflow: hidden; }
/* Hide the WoodMart mobile bottom toolbar and any other bottom bar while the popup is open */
.snap-ps-hidden, html.snap-ps-lock .wd-toolbar { visibility: hidden !important; pointer-events: none !important; }

.snap-ps-overlay {
  position: fixed; inset: 0; z-index: 2147483647; display: none;
  align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .5);
}
.snap-ps-overlay.is-open { display: flex; }
.snap-ps-sheet {
  position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
  background: #fff; color: #222; border-radius: 16px 16px 0 0;
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
}
@media (min-width: 768px) {
  .snap-ps-overlay { align-items: center; }
  .snap-ps-sheet { max-width: 460px; border-radius: 16px; padding: 32px 28px 24px; }
}
.snap-ps-x {
  position: absolute; top: 8px; right: 10px; width: 40px; height: 40px;
  border: 0; background: none; font-size: 28px; line-height: 1; color: #666; cursor: pointer;
}

.snap-ps-eyebrow { margin: 0 0 4px; font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: .04em; }
.snap-ps-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.snap-ps-sub { margin: 0 0 12px; color: #555; font-size: 14px; }
.snap-ps-text { margin: 0 0 12px; color: #444; font-size: 15px; }
.snap-ps-strong { font-weight: 600; color: #222; }
.snap-ps-label { margin: 18px 0 8px; font-weight: 600; font-size: 15px; }
.snap-ps-center { text-align: center; }

.snap-ps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.snap-ps-chip {
  min-width: 72px; min-height: 44px; padding: 8px 14px;
  border: 1px solid #ccc; border-radius: 22px; background: #fff; color: #222;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.snap-ps-chip.is-best { border: 2px solid var(--wd-primary-color, #111); }
.snap-ps-chip:hover, .snap-ps-chip:focus-visible { background: var(--wd-primary-color, #111); border-color: var(--wd-primary-color, #111); color: #fff; }

.snap-ps-others { display: flex; flex-direction: column; gap: 8px; }
.snap-ps-other {
  min-height: 44px; padding: 10px 14px; text-align: left;
  border: 1px solid #ddd; border-radius: 8px; background: #fafafa; color: #222; font-size: 15px; cursor: pointer;
}

.snap-ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.snap-ps-primary, .snap-ps-secondary {
  min-height: 44px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer;
}
.snap-ps-primary { border: 0; background: var(--wd-primary-color, #111); color: #fff; }
.snap-ps-secondary { border: 2px solid var(--wd-primary-color, #111); background: #fff; color: var(--wd-primary-color, #111); }
.snap-ps-link {
  display: inline-block; margin-top: 10px; padding: 6px 0; border: 0; background: none;
  color: #555; text-decoration: underline; font-size: 14px; cursor: pointer;
}
.snap-ps-actions .snap-ps-link { margin-top: 0; }

.snap-ps-spinner {
  width: 44px; height: 44px; margin: 8px auto 16px; border-radius: 50%;
  border: 4px solid #eee; border-top-color: var(--wd-primary-color, #111);
  animation: snap-ps-spin .8s linear infinite;
}
@keyframes snap-ps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .snap-ps-spinner { animation-duration: 2.4s; } }

.snap-ps-ts:empty { display: none; }
.snap-ps-ts { margin-top: 12px; display: flex; justify-content: center; }
.snap-ps-help { margin-top: 12px; font-size: 13px; color: #666; }
.snap-ps-version { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.snap-ps-vlabel { font-weight: 600; font-size: 16px; color: #222; }
.snap-ps-vmodel { font-size: 13px; color: #666; }
