a[data-fancybox] img {
  cursor: zoom-in;
}

.fancybox__container {
  --carousel-button-bg: rgb(0 0 0 / 44%);

  --carousel-button-svg-width: 24px;
  --carousel-button-svg-height: 24px;

  --carousel-button-svg-stroke-width: 2.5;
  --carousel-button-svg-filter: none;

  /* customerPanel uses z-index:100000 inline, so fancybox must clear it.
     Fancybox sets z-index via inline style when it opens, which beats a
     plain external rule - !important is required here. */
  --fancybox-zIndex: 100001 !important;
  z-index: 100001 !important;
}

.fancybox__nav {
  --carousel-button-svg-width: 22px;
  --carousel-button-svg-height: 22px;

  --carousel-button-svg-stroke-width: 3;
}

.fancybox__nav .carousel__button.is-prev {
  left: 30px;
}

.fancybox__nav .carousel__button.is-next {
  right: 30px;
}

.fancybox__content .carousel__button.is-close {
  background: red;
  z-index: 11;
  top: 1em;
  right: 1em;
  font-size: 30%;
}

.fancybox__slide {
  padding: 0;
}

.fancybox__thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.fancybox__thumbs .carousel__slide {
  padding: 20px 10px;
  overflow: visible;
}

.fancybox__thumb {
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.26);
}

.is-nav-selected .fancybox__thumb {
  transform: scale(1.25);
}

.is-nav-selected .fancybox__thumb::after {
  display: none;
}

.vp-search-card {
  max-width: 620px;
  margin: 0 auto 32px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20, 25, 35, 0.08);
  text-align: center;
}

.vp-search-card-title {
  margin: 0 0 4px;
  font-size: 1.3em;
  font-weight: 700;
  color: #22292f;
}

.vp-search-card-sub {
  margin: 0 0 18px;
  font-size: 0.92em;
  color: #6b7580;
}

.vp-search-wrap {
  position: relative;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

/*
    Scoped as ".vp-search-wrap input.vp-search-input" (not just the bare
    class) so this beats main.css's global "input[type=text]" reset
    (background/padding/border/height, specificity 0,1,1 vs a bare class's
    0,1,0) regardless of stylesheet load order -- same class of bug as the
    earlier fancybox close-button fix.
*/
.vp-search-wrap input.vp-search-input {
  width: 100%;
  height: auto;
  padding: 16px 20px 16px 46px;
  font-size: 1.08em;
  border: 1px solid #d8dde3;
  border-radius: 10px;
  box-sizing: border-box;
  background: #f7f8f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a929c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 16px center;
  background-size: 18px 18px;
  transition: border-color .15s, box-shadow .15s;
}

.vp-search-wrap input.vp-search-input:focus {
  outline: none;
  border-color: #8a929c;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(138, 146, 156, 0.15);
}

.vp-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.vp-search-results.is-open {
  display: block;
}

.vp-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 0.92em;
  color: #22292f;
}

.vp-search-result:last-child {
  border-bottom: none;
}

.vp-search-result:hover,
.vp-search-result:focus {
  background: #f7f8f9;
}

.vp-search-result img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #eef1f4;
  flex-shrink: 0;
  background: #fff;
}

.vp-search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vp-search-result-label {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vp-search-result-sub {
  font-size: 0.85em;
  color: #8a929c;
}

.vp-search-empty,
.vp-search-loading {
  padding: 10px 12px;
  font-size: 0.9em;
  color: #8a929c;
}