/* City Switch Toast — sticky banner below header */
.cv-city-toast {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff8e1;
  border-bottom: 1px solid #ffe082;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  animation: cv-toast-slide-in 0.3s ease-out;
}

.cv-city-toast--warn {
  background: #fff3e0;
  border-bottom-color: #ffb74d;
}

.cv-city-toast--hiding {
  animation: cv-toast-slide-out 0.3s ease-in forwards;
}

.cv-city-toast__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cv-city-toast__msg {
  flex: 1;
  min-width: 0;
  color: #5d4037;
}

.cv-city-toast__btn {
  display: inline-block;
  padding: 6px 16px;
  background: #ff6666;
  color: #fff;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.cv-city-toast__btn:hover {
  background: #e55a5a;
}

.cv-city-toast__btn--secondary {
  background: transparent;
  color: #5d4037;
  border: 1px solid #8d6e63;
}

.cv-city-toast__btn--secondary:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #4e342e;
}

.cv-city-toast__close {
  background: none;
  border: none;
  font-size: 20px;
  color: #8d6e63;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.cv-city-toast__close:hover {
  color: #4e342e;
}

/* Header city highlight animation */
.cv-city-highlight {
  animation: cv-city-pulse 1.5s ease-in-out 2;
}

@keyframes cv-city-pulse {
  0%, 100% { color: inherit; }
  50% { color: #ff6666; }
}

@keyframes cv-toast-slide-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cv-toast-slide-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-100%); opacity: 0; }
}

/* Mobile: don't overlap floating cart button */
@media (max-width: 772px) {
  .cv-city-toast {
    padding: 8px 12px;
    font-size: 13px;
  }

  .cv-city-toast__inner {
    gap: 8px;
  }

  .cv-city-toast__btn {
    font-size: 12px;
    padding: 5px 12px;
  }
}
