:root {
  --reservation-toast-bg: linear-gradient(135deg, rgba(17, 20, 23, 0.98), rgba(29, 37, 43, 0.96));
  --reservation-toast-text: #f7f4ef;
  --reservation-toast-muted: rgba(247, 244, 239, 0.74);
  --reservation-toast-border: rgba(255, 255, 255, 0.1);
  --reservation-toast-accent: #f0b267;
  --reservation-toast-accent-soft: rgba(240, 178, 103, 0.18);
  --reservation-toast-shadow: 0 22px 55px rgba(15, 17, 19, 0.35);
}

.reservation-toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1400;
  width: min(380px, calc(100vw - 24px));
  pointer-events: none;
}

@media (max-width: 576px) {
  .reservation-toast-container {
    left: 12px;
    right: 12px;
    top: 76px;
    width: auto;
  }
}

.reservation-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  border-radius: 18px;
  background: var(--reservation-toast-bg);
  border: 1px solid var(--reservation-toast-border);
  box-shadow: var(--reservation-toast-shadow);
  color: var(--reservation-toast-text);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate3d(18px, -8px, 0) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  pointer-events: auto;
}

.reservation-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reservation-toast.is-hiding {
  opacity: 0;
  transform: translate3d(16px, -6px, 0) scale(0.985);
  filter: blur(4px);
}

.reservation-toast__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(240, 178, 103, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(240, 178, 103, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--reservation-toast-accent);
}

.reservation-toast__icon span {
  transform: translateY(-1px);
}

.reservation-toast__image {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.reservation-toast__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 10px;
}

.reservation-toast__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--reservation-toast-accent);
  line-height: 1.25;
}

.reservation-toast__message {
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--reservation-toast-text);
  word-break: break-word;
}

.reservation-toast__message strong {
  color: #fff;
  font-weight: 700;
}

.reservation-toast__close {
  flex-shrink: 0;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--reservation-toast-muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.reservation-toast__close:hover,
.reservation-toast__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .reservation-toast {
    transition: none;
    transform: none;
    filter: none;
  }
}
