/*
 * MOBILE_PRODUCT_DESCRIPTION_IMAGE_ZOOM_PHASE_02
 * Styles are scoped to .okgs-description-pswp only — never touches
 * .okgs-review-pswp-open / .okgs-pswp-enhanced-open / review-media.css selectors.
 * Big close-button design intentionally mirrors the review PhotoSwipe UX
 * (REVIEW_IMAGE_LIGHTBOX_MOBILE_CLOSE_BUTTON_UX_FIX_PHASE_01) for visual
 * consistency, re-implemented under an independent class scope.
 */

@media (max-width: 991.98px) {
  .okgs-clean-description > p > img {
    cursor: zoom-in;
  }
}

.pswp.okgs-description-pswp .pswp__top-bar {
  height: auto;
  min-height: 44px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: calc(68px + env(safe-area-inset-right, 0px));
  pointer-events: none;
  opacity: 1 !important;
}

.pswp.okgs-description-pswp.pswp__ui--idle .pswp__top-bar,
.pswp.okgs-description-pswp.pswp__ui--hidden .pswp__top-bar {
  opacity: 1 !important;
}

.pswp.okgs-description-pswp .pswp__button--close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  float: none;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
  z-index: 1000040 !important;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
  overflow: visible !important;
}

.pswp.okgs-description-pswp .pswp__button--close::before,
.pswp.okgs-description-pswp .pswp__button--close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 3px;
  margin: 0;
  border: 0;
  background: #111 !important;
  background-image: none !important;
  border-radius: 2px;
  pointer-events: none;
}

.pswp.okgs-description-pswp .pswp__button--close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pswp.okgs-description-pswp .pswp__button--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
