/* Modern Product Modal Popup Styles for WordPress Exploded Diagram System */
.exploded-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 29, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
  pointer-events: none;
}

.exploded-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.exploded-modal-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 92vw;
  width: 360px;
  padding: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(.175, 0.885, 0.32, 1.275);
}

.exploded-modal-overlay.active .exploded-modal-container {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.exploded-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f1f3f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: #495057;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.exploded-modal-close:hover {
  background: #dee2e6;
  color: #212529;
  transform: rotate(90deg);
}

.exploded-modal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 25px 0 25px;
  box-sizing: border-box;
}

.exploded-modal-image {
  width: 100%;
  max-width: 240px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 22px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.exploded-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.3;
}

.exploded-modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1bbf4c;
  margin-bottom: 22px;
  background: rgba(27, 191, 76, 0.08);
  padding: 8px 20px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.exploded-modal-action {
  background: #1bbf4c;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 85%;
  box-shadow: 0 4px 12px rgba(27, 191, 76, 0.2);
}

.exploded-modal-action:hover {
  background: #159a3c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 191, 76, 0.3);
}

@media (max-width: 600px) {
  .exploded-modal-container {
    width: 95vw;
    padding: 0 0 20px 0;
  }
}