.contact-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.contact-widget-panel {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: var(--prussian-blue);
  border: 0.0625rem solid rgba(252, 163, 17, 0.25);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  min-width: 13rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(0.5rem) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-widget-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.widget-panel-label {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.widget-panel-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--alabaster-grey);
  font-size: 0.9rem;
  font-weight: var(--fw-light);
  transition: color 0.2s;
}

.widget-panel-item:hover {
  color: var(--white);
}

.widget-panel-item i {
  color: var(--orange);
  font-size: 0.85rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.widget-panel-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-radius: 0.4rem;
  transition: background 0.2s;
}

.widget-panel-book:hover {
  background: #e8940f;
}

.contact-widget-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow:
    0 0 0 2px var(--orange),
    0 0 0 5px var(--prussian-blue),
    0 0.35rem 1.25rem rgba(252, 163, 17, 0.4);
  animation: widget-glow 2.5s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}


@keyframes widget-glow {
  0%, 100% {
    box-shadow:
      0 0 0 2px var(--orange),
      0 0 0 5px var(--prussian-blue),
      0 0.35rem 1.25rem rgba(252, 163, 17, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--orange),
      0 0 0 5px var(--prussian-blue),
      0 0.35rem 1.75rem rgba(252, 163, 17, 0.65);
  }
}

.contact-widget-btn:hover {
  background: #e8940f;
  transform: scale(1.07);
}

.contact-widget-btn .widget-icon-close {
  display: none;
}

.contact-widget-btn.open .widget-icon-phone {
  display: none;
}

.contact-widget-btn.open .widget-icon-close {
  display: block;
}

@media (max-width: 768px) {
  .contact-widget {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .contact-widget-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .contact-widget {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .contact-widget-panel {
    min-width: 11.5rem;
    padding: 1rem 1.25rem;
  }

  .contact-widget-btn {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }

  .widget-panel-item {
    font-size: 0.85rem;
  }

  .widget-panel-book {
    font-size: 0.825rem;
    padding: 0.55rem 0.875rem;
  }
}

@media (max-width: 375px) {
  .contact-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .contact-widget-panel {
    min-width: 10.5rem;
    padding: 0.875rem 1rem;
  }

  .contact-widget-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.95rem;
  }

  .widget-panel-item {
    font-size: 0.8rem;
  }

  .widget-panel-book {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 320px) {
  .contact-widget {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .contact-widget-panel {
    min-width: 9.5rem;
    padding: 0.75rem 0.875rem;
    gap: 0.5rem;
  }

  .contact-widget-btn {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
  }

  .widget-panel-item {
    font-size: 0.75rem;
  }

  .widget-panel-book {
    font-size: 0.75rem;
    padding: 0.45rem 0.625rem;
  }
}
