/* Etapa 12 — busca, comparação e galeria isoladas do Elementor */
.d1im-search .d1im-advanced-toggle,
.d1im-search .d1im-advanced-toggle:hover,
.d1im-search .d1im-advanced-toggle:focus,
.d1im-search .d1im-advanced-toggle:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--d1im-primary) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transform: none !important;
}

.d1im-search .d1im-advanced-toggle span:last-child,
.d1im-search .d1im-advanced-toggle:hover span:last-child,
.d1im-search .d1im-advanced-toggle:focus span:last-child {
  display: inline-flex !important;
  flex: 0 0 22px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  padding: 0 0 1px !important;
  border: 1px solid var(--d1im-primary) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--d1im-primary) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.d1im-compare-dialog .d1im-compare-close,
.d1im-compare-table .d1im-compare-remove,
.d1im-compare-dialog .d1im-compare-close:hover,
.d1im-compare-table .d1im-compare-remove:hover,
.d1im-compare-dialog .d1im-compare-close:focus,
.d1im-compare-table .d1im-compare-remove:focus {
  display: grid !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.14) !important;
  color: #20242b !important;
  opacity: 1 !important;
  place-items: center !important;
  transform: none !important;
}

.d1im-compare-dialog .d1im-compare-close {
  top: 12px !important;
  right: 12px !important;
  width: 42px !important;
  height: 42px !important;
}

.d1im-compare-table .d1im-compare-remove {
  top: 18px !important;
  right: 18px !important;
  width: 32px !important;
  height: 32px !important;
}

.d1im-compare-dialog .d1im-compare-close svg,
.d1im-compare-table .d1im-compare-remove svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  opacity: 1 !important;
  pointer-events: none;
}

.d1im-compare-dialog .d1im-compare-close:hover,
.d1im-compare-table .d1im-compare-remove:hover {
  border-color: #aeb5bf !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.d1im-gallery {
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid var(--d1im-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 9px 30px rgba(15, 23, 42, 0.07) !important;
  box-sizing: border-box !important;
}

.d1im-gallery .d1im-gallery-item,
.d1im-gallery .d1im-gallery-item:hover,
.d1im-gallery .d1im-gallery-item:focus,
.d1im-gallery .d1im-gallery-item:active {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  outline: 0 !important;
  background: #f3f4f6 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.d1im-gallery .d1im-gallery-item img,
.d1im-gallery .d1im-gallery-item:hover img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  object-fit: cover !important;
}

.d1im-gallery .d1im-gallery-item:hover img { transform: scale(1.018) !important; }

.d1im-gallery .d1im-gallery-item > span,
.d1im-gallery .d1im-gallery-item:hover > span {
  border: 0 !important;
  background: #fff !important;
  color: #17191d !important;
}

.d1im-lightbox .d1im-lightbox-close,
.d1im-lightbox .d1im-lightbox-close:hover,
.d1im-lightbox .d1im-lightbox-close:focus {
  display: grid !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #17191d !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
  opacity: 1 !important;
  place-items: center !important;
}

.d1im-lightbox .d1im-lightbox-close svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}
