/* Ingrandimento in modale delle immagini dello slider prodotto (cb-zoom.js) */
#slider { cursor: zoom-in; }

#sliderFrame .cbz-open {
  position: absolute; top: 18px; right: 18px; z-index: 20;
  width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #dedede; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #333; cursor: pointer;
}
#sliderFrame .cbz-open:hover { color: #aa080d; border-color: #aa080d; }

html.cbz-lock { overflow: hidden; }

.cbz-dialog {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  background: transparent; overflow: hidden;
}
.cbz-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.cbz-box {
  position: relative; box-sizing: border-box; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 70px;
}
.cbz-img {
  display: block; box-sizing: border-box;
  width: min(600px, 100%, 100vh - 120px); height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; background: #fff; border-radius: 6px;
}
.cbz-dialog .cbz-btn {
  position: absolute; width: 46px; height: 46px; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #fff; color: #222;
  font: 400 20px/1 Arial, sans-serif; cursor: pointer;
}
.cbz-dialog .cbz-btn:hover { background: #aa080d; color: #fff; }
.cbz-dialog .cbz-close { top: 12px; right: 12px; font-size: 30px; }
.cbz-dialog .cbz-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.cbz-dialog .cbz-next { right: 12px; top: 50%; transform: translateY(-50%); }
.cbz-count {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; color: #fff; font: 14px/1.4 Arial, sans-serif;
  pointer-events: none;
}
.cbz-single .cbz-prev, .cbz-single .cbz-next, .cbz-single .cbz-count { display: none !important; }

@media (max-width: 600px) {
  .cbz-box { padding: 60px 12px; }
  .cbz-dialog .cbz-prev, .cbz-dialog .cbz-next { top: auto; bottom: 8px; transform: none; }
}

/* miniatura della foto del modello scelto nel configuratore (stessa riga delle altre) */
#sliderFrame.cbz-has-model { text-align: center; }
#sliderFrame.cbz-has-model #thumbs,
#sliderFrame .cbz-model { display: inline-block; vertical-align: top; margin-top: 25px; }
#sliderFrame .cbz-model { padding: 4px; margin-right: 1px; border: 0; background: none; line-height: 0; cursor: pointer; }
#sliderFrame .cbz-model img { width: 30px; height: 30px; border: 1px solid #dedede; opacity: .75; }
#sliderFrame.cbz-model-on .cbz-model img { border-color: #aa080d; opacity: 1; }
#sliderFrame.cbz-model-on #thumbs .thumb-on img { border-color: #dedede; opacity: .75; }
