.phone-popup {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9999;
  transform: translateY(120px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  animation: phoneAutoShow 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.phone-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.phone-popup.closed {
  display: none;
  animation: none;
}

@keyframes phoneAutoShow {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.phone-popup-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 60px;
  padding: 14px 20px 14px 14px;
  box-shadow:
    0 8px 32px rgba(233, 30, 140, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(233, 30, 140, 0.15);
}

.phone-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e91e8c, #c2185b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: ring 2.5s ease-in-out infinite;
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(-12deg);
  }
  20% {
    transform: rotate(12deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(0deg);
  }
}

.phone-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-label {
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #e91e8c;
  text-transform: uppercase;
}

.phone-number {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.phone-number:hover {
  color: #e91e8c;
}

.phone-close {
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  font-size: 13px;
  padding: 0 0 0 6px;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.phone-close:hover {
  color: #e91e8c;
}

#toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast-message {
  background: white;
  color: #3a0a20;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(233, 30, 140, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  border-left: 5px solid #e91e8c;
  animation: slideInToast 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast-message span {
  color: #e91e8c;
  font-size: 18px;
}

@keyframes slideInToast {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-message.fade-out {
  animation: fadeOutToast 0.4s ease-in forwards;
}

@keyframes fadeOutToast {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
}

@media (max-width: 900px) {
  .phone-popup {
    position: fixed !important;
    left: 12px !important;
    right: auto !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    top: auto !important;
    z-index: 100000 !important;
    max-width: calc(100vw - 92px);
  }

  .phone-popup-inner {
    gap: 9px;
    padding: 10px 12px 10px 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .phone-icon {
    width: 36px;
    height: 36px;
  }

  .phone-label {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .phone-number {
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  #toast-container {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .toast-message {
    min-width: auto;
    width: 100%;
    padding: 13px 16px;
  }
}

@media (max-width: 380px) {
  .phone-popup {
    left: 8px !important;
    max-width: calc(100vw - 84px);
  }

  .phone-popup-inner {
    gap: 7px;
    padding: 8px 10px 8px 8px;
  }

  .phone-icon {
    width: 32px;
    height: 32px;
  }

  .phone-label {
    display: none;
  }

  .phone-number {
    font-size: 12px;
  }
}
