/* === CHAT PROCLIMATE (pc-*) === */

#pc-chat-window {
  position: fixed;
  bottom: 120px; /* ridicat puțin ca să nu stea peste bara mobilă */
  right: 12px;
  width: 360px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9997; /* sub bara mobilă (9998) */
}

#pc-chat-header {
  position: relative;
  padding: 12px 16px;
  background: #005dc9;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
}

.pc-chat-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

#pc-chat-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

#pc-chat-body {
  padding: 10px 12px;
  max-height: 360px;
  overflow-y: auto;
  background: #f5f7fb;
}

.pc-msg {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.pc-msg.bot {
  background: #0059a9;
  color: #fff;
}

.pc-msg.user {
  background: #0059a9;
  color: #ffffff;
}

#pc-chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

#pc-chat-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
}

#pc-chat-send {
  border: none;
  background: #005dc9;
  color: #ffffff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

#pc-chat-send:hover {
  background: #0049a1;
}

.pc-chat-lead-btn {
  border: 1px solid #005dc9;
  background: #ffffff;
  color: #005dc9;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
}

/* === CHAT LAUNCHER (bula mică) === */

#pc-chat-launcher {
  position: fixed;
  bottom: 90px; /* ridicat ca să nu se lovească de bara mobilă */
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #e0ecff; /* albastru deschis, mai discret */
  color: #00417d;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  z-index: 9997; /* sub bara mobilă (9998) */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  user-select: none;
  min-height: 44px;
}

#pc-chat-launcher:hover {
  background: #d0e0ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.pc-chat-icon {
  font-size: 18px;
}

.pc-chat-label {
  font-size: 15px;
}

/* === BARĂ MOBILĂ DE LEAD (Cere ofertă / Sună acum) === */

.pc-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 32, 61, 0.96); /* mai închis, prioritar vizual */
  color: #f9fafb;
  padding: 8px 10px;
  z-index: 9998;
}

.pc-mobile-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.pc-mobile-btn {
  flex: 1;
  text-align: center;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pc-mobile-btn-primary {
  background: #005dc9;
  color: #ffffff;
}

.pc-mobile-btn-secondary {
  background: #ffffff;
  color: #005dc9;
}

/* Ascunde bara pe desktop, afișează pe mobil/tabletă */
@media (min-width: 960px) {
  .pc-mobile-bar {
    display: none;
  }
}

/* Opțional: dacă vrei să ascunzi chat launcher-ul pe mobil
@media (max-width: 768px) {
  #pc-chat-launcher {
    display: none;
  }
}
*/

/* === LIGHTBOX IMAGINI PROCLIMATE === */

.pc-image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
}

.pc-image-lightbox[aria-hidden="false"] {
  display: flex;
}

.pc-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.pc-image-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 12px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pc-image-lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
}

#pcImageLightboxCaption {
  margin-top: 8px;
  font-size: 14px;
  color: #111827;
  text-align: center;
}

.pc-image-lightbox-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}