/* PixelnCode Modern Contact Widget, copied as it is from pixelncode.com */
/* Widget base */
#pnc-contact-widget,
#pnc-contact-widget * {
  box-sizing: border-box;
}

#pnc-contact-widget {
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
}

/* Floating button */
#pnc-toggle {
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: #0866ff;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

#pnc-toggle:hover {
  background: #0055e8;
  transform: scale(1.06);
}

#pnc-toggle:focus-visible,
#pnc-close:focus-visible,
.pnc-option:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

/* Modern main chat icon */
#pnc-toggle .pnc-main-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

#pnc-toggle .pnc-main-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#pnc-toggle .pnc-main-icon .pnc-dot {
  fill: currentColor;
  stroke: none;
}

/* Tooltip */
.pnc-tooltip {
  position: absolute;
  right: 72px;
  background: #172033;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: normal;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#pnc-toggle:hover .pnc-tooltip {
  opacity: 1;
}

/* Contact panel */
.pnc-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #172033;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  animation: pnc-appear 0.2s ease;
}

.pnc-panel[hidden] {
  display: none !important;
}

@keyframes pnc-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel heading */
.pnc-header {
  background: #f7f9fc;
  padding: 19px 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pnc-header strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.pnc-header p {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.5;
}

#pnc-close {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* Contact options */
.pnc-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #172033;
  border-top: 1px solid #f0f2f5;
  transition: background 0.2s ease;
}

.pnc-option:hover {
  background: #f8fafc;
}

.pnc-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pnc-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pnc-whatsapp {
  background: #dcfce7;
  color: #15803d;
}

.pnc-sms {
  background: #fef3c7;
  color: #b45309;
}

.pnc-email {
  background: #f3e8ff;
  color: #7e22ce;
}

.pnc-option-text {
  flex: 1;
  min-width: 0;
}

.pnc-option strong,
.pnc-option small {
  display: block;
}

.pnc-option strong {
  font-size: 14px;
  margin-bottom: 4px;
}

.pnc-option small {
  color: #64748b;
  font-size: 11px;
}

.pnc-arrow {
  margin-left: auto;
  color: #94a3b8;
  font-size: 25px;
}

/* Panel footer */
.pnc-footer {
  text-align: center;
  padding: 12px;
  color: #94a3b8;
  font-size: 11px;
  background: #f8fafc;
}

/* Mobile */
@media (max-width: 480px) {
  #pnc-contact-widget {
    right: 16px;
    bottom: 16px;
  }

  #pnc-toggle {
    width: 58px;
    height: 58px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  #pnc-toggle,
  .pnc-tooltip,
  .pnc-option {
    transition: none;
  }

  .pnc-panel {
    animation: none;
  }
}
