.contact-widget {
  position: fixed;
  right: 20px;
  bottom: 105px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
}

.contact-widget-panel {
  width: min(320px, calc(100vw - 40px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transform-origin: bottom right;
  animation: contactWidgetIn 0.22s ease;
}

.contact-widget-panel[hidden] {
  display: none;
}

@keyframes contactWidgetIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-widget-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: #222;
  border-bottom: 1px solid #ececec;
  transition: background 0.15s ease;
}

.contact-widget-item:last-child {
  border-bottom: none;
}

.contact-widget-item:hover {
  background: #f8f8f8;
}

.contact-widget-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.contact-widget-icon svg,
.contact-widget-icon img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.contact-widget-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-widget-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
}

.contact-widget-sub {
  font-size: 12px;
  line-height: 1.35;
  color: #888;
}

.contact-widget-toggle {
  box-sizing: border-box;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #141414a1;
  color: #ffffff;
  font-family: sans-serif;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-widget-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  background: #141414d9;
}

.contact-widget-toggle-badge {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.contact-widget-toggle-badge svg {
  width: 27px;
  height: 27px;
  display: block;
}

.contact-widget-toggle-label {
  font-size: 14px;
  font-family: sans-serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: #ffffff;
}

.contact-widget-toggle-icon--close {
  display: none;
  flex: 0 0 18px;
}

.contact-widget.is-open .contact-widget-toggle {
  width: 51px;
  height: 51px;
  padding: 12px;
  gap: 0;
}

.contact-widget.is-open .contact-widget-toggle-badge,
.contact-widget.is-open .contact-widget-toggle-label {
  display: none;
}

.contact-widget.is-open .contact-widget-toggle-icon--close {
  display: block;
}

@media (max-width: 480px) {
  .contact-widget {
    right: 14px;
    bottom: 100px;
  }
}
