/* Floating contact popup */

#contact-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  font-family: 'Cabin', Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

#contact-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #595959;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 1px 2px rgba(51, 51, 51, 0.35);
  transition: background 0.2s, transform 0.15s;
  color: #fff;
  padding: 0;
}

#contact-toggle:hover {
  background: #3d7ab5;
  color: #fff;
  transform: scale(1.05);
}

#contact-toggle:active {
  transform: scale(0.97);
}

#contact-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

#contact-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 1px 1px 2px rgba(51, 51, 51, 0.25);
  border: 1px solid #CCC;
  overflow: hidden;
  animation: contact-slide-up 0.2s ease;
}

@keyframes contact-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#contact-header {
  background: #595959;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#contact-title {
  font-weight: bold;
  font-size: 15px;
}

#contact-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  opacity: 0.8;
}

#contact-close:hover {
  opacity: 1;
}

#contact-close svg {
  width: 18px;
  height: 18px;
}

#contact-options {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 4px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: #313131;
  transition: background 0.15s;
}

.contact-option:hover,
.contact-option:focus {
  background: #f6f7f9;
  text-decoration: none;
  color: #313131;
}

.contact-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.contact-option-icon svg {
  width: 20px;
  height: 20px;
}

.contact-option--phone .contact-option-icon {
  background: #4a90d9;
}

.contact-option--email .contact-option-icon {
  background: #595959;
}

.contact-option--whatsapp .contact-option-icon {
  background: #25D366;
}

.contact-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-option-label {
  font-size: 12px;
  color: #999;
}

.contact-option-value {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  #contact-root {
    right: 16px;
    bottom: 16px;
  }

  #contact-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}
