/* Custom Static Styling for potolki-sarsen.kz static clone */

/* Fix background images lazy load */
.e-con.e-parent,
.e-con.e-parent * {
  background-image: inherit !important;
}

/* Ensure images fit well */
img {
  max-width: 100%;
  height: auto;
}

/* Floating Contact Widget (Chaty Replacement) */
.static-chaty-wrap {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.static-chaty-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4F6ACA;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
  outline: none;
}

.static-chaty-trigger:hover {
  transform: scale(1.06);
  background: #3f58b0;
}

.chaty-badge-text {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #333333;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  animation: staticChatyPulse 2s infinite ease-in-out;
}

@keyframes staticChatyPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.04); }
}

.static-chaty-channels {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  margin-bottom: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.static-chaty-wrap.is-open .static-chaty-channels {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.static-chaty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  text-decoration: none;
  position: relative;
}

.static-chaty-btn:hover {
  transform: scale(1.1);
}

.static-chaty-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.static-chaty-tooltip {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  pointer-events: none;
}

.static-chaty-btn:hover .static-chaty-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Modal */
.static-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.static-lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: staticLightboxZoom 0.25s ease-out;
}

@keyframes staticLightboxZoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.static-lightbox-close {
  position: fixed;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.static-lightbox-close:hover {
  opacity: 1;
}

.static-lightbox-prev,
.static-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 28px;
  padding: 14px 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.static-lightbox-prev {
  left: 20px;
}

.static-lightbox-next {
  right: 20px;
}

.static-lightbox-prev:hover,
.static-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .static-chaty-wrap {
    bottom: 18px;
    right: 18px;
  }
  .chaty-badge-text {
    display: none;
  }
  .static-lightbox-prev {
    left: 8px;
    padding: 10px 14px;
    font-size: 22px;
  }
  .static-lightbox-next {
    right: 8px;
    padding: 10px 14px;
    font-size: 22px;
  }
}
