/* TOPDON 1.2.9: independent product gallery, no FlexSlider or PhotoSwipe. */
.topdon-wc-single .woocommerce div.product > .topdon-single-gallery{
  display:block;position:relative;box-sizing:border-box;min-width:0;width:100%;
  float:none;margin:0;align-self:start;
}
.topdon-wc-single .topdon-gallery-stage{
  display:flex;position:relative;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:390px;aspect-ratio:1/1;
  padding:24px;box-sizing:border-box;cursor:zoom-in;
  border:1px solid #e3e8ed;border-radius:22px;background:#fff;overflow:hidden;
}
.topdon-wc-single .topdon-gallery-stage .topdon-gallery-stage-image{
  position:static!important;display:block!important;object-fit:contain!important;
  object-position:center!important;width:100%!important;height:100%!important;
  max-height:550px!important;min-height:0!important;min-width:0!important;
  padding:0!important;margin:0!important;opacity:1!important;
  mix-blend-mode:normal!important;filter:none!important;transform:none!important;
  background:#fff!important;
}
.topdon-wc-single .topdon-gallery-zoom-icon{
  display:grid;place-items:center;position:absolute;right:16px;top:16px;width:40px;height:40px;
  background:#fff;color:#23384a;border:1px solid #d7e2ec;border-radius:10px;
  box-shadow:0 4px 13px rgba(0,0,0,.15);pointer-events:none;
}
.topdon-gallery-zoom-icon svg{width:21px;height:21px}
.topdon-wc-single .topdon-gallery-thumbnails{
  display:flex;flex-wrap:wrap;gap:10px;margin:13px 0 0;padding:0;
}
.topdon-wc-single .topdon-gallery-thumbnail{
  display:flex;justify-content:center;align-items:center;cursor:pointer;
  width:78px;height:78px;padding:6px;box-sizing:border-box;
  border:2px solid #d5e1ec;border-radius:11px;background:#fff;overflow:hidden;
}
.topdon-wc-single .topdon-gallery-thumbnail.is-active{border-color:#10acf9;box-shadow:0 0 0 2px rgba(16,172,249,.18)}
.topdon-wc-single .topdon-gallery-thumbnail img{width:100%!important;height:100%!important;display:block!important;object-fit:contain!important;opacity:1!important;mix-blend-mode:normal!important}
.topdon-wc-single .topdon-gallery-error{margin:10px 0 0;color:#c5d5e8;font-size:12px}
.topdon-wc-single .topdon-gallery-error a{color:#10acf9;text-decoration:underline}
.topdon-wc-single .topdon-gallery-error[hidden]{display:none!important}

/* Lightbox is appended to <body> to avoid parent overflow and transforms. */
.topdon-gallery-modal[hidden],.topdon-gallery-modal [hidden]{display:none!important}
body > .topdon-gallery-modal{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  background:rgba(3,8,16,.94);padding:clamp(10px,3vw,32px);
}
.topdon-gallery-modal-panel{
  position:relative;display:flex;justify-content:center;align-items:center;
  width:min(1100px,100%);height:min(88vh,860px);
  overflow:hidden;border-radius:17px;border:1px solid #30445a;background:#0c1825;
}
.topdon-gallery-modal-canvas{
  position:absolute;inset:50px 56px 38px;display:flex;align-items:center;justify-content:center;
  overflow:hidden;border-radius:10px;background:#fff;
}
.topdon-gallery-modal-image{
  display:block!important;width:100%!important;height:100%!important;min-width:0!important;
  max-width:none!important;max-height:none!important;object-fit:contain!important;
  position:static!important;margin:0!important;padding:12px!important;
  opacity:1!important;filter:none!important;transform:none!important;mix-blend-mode:normal!important;
  background:#fff!important;
}
.topdon-gallery-modal-message{max-width:75%;padding:20px;text-align:center;font:600 14px/1.5 Inter,Arial,sans-serif;color:#27384b}
.topdon-gallery-modal-message a{display:block;color:#075a99;text-decoration:underline;margin-top:12px}
.topdon-gallery-modal button{
  position:absolute;display:grid;place-items:center;cursor:pointer;
  width:43px;height:43px;padding:10px;border:1px solid #516579;
  border-radius:10px;background:#22364b;color:#fff;z-index:2;
}
.topdon-gallery-modal button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.topdon-gallery-modal button:hover{background:#0b679b}
.topdon-gallery-modal button:focus-visible,.topdon-gallery-stage:focus-visible,.topdon-gallery-thumbnail:focus-visible{outline:2px solid #10acf9;outline-offset:2px}
.topdon-gallery-modal-close{right:10px;top:9px}
.topdon-gallery-modal-prev{left:7px;top:50%;transform:translateY(-50%)}
.topdon-gallery-modal-next{right:7px;top:50%;transform:translateY(-50%)}
@media(max-width:767px){
 .topdon-wc-single .topdon-gallery-stage{min-height:285px;aspect-ratio:1/1;padding:12px;border-radius:16px}
 .topdon-wc-single .topdon-gallery-thumbnails{gap:8px}
 .topdon-wc-single .topdon-gallery-thumbnail{width:64px;height:64px}
 body > .topdon-gallery-modal{padding:8px}
 .topdon-gallery-modal-panel{height:min(82vh,720px);border-radius:12px}
 .topdon-gallery-modal-canvas{inset:54px 8px 65px}
 .topdon-gallery-modal-image{padding:6px!important}
 .topdon-gallery-modal-prev{top:auto;bottom:10px;left:calc(50% - 53px);transform:none}
 .topdon-gallery-modal-next{top:auto;bottom:10px;right:calc(50% - 53px);transform:none}
}
