* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: transparent;
  overflow: hidden;
  font-family: var(--alert-font-family, system-ui, -apple-system, sans-serif);
}

#alert-container {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
  z-index: 9999;
}

#alert-container.pos-bottom-right {
  bottom: 40px;
  right: 40px;
  left: auto;
  top: auto;
  align-items: flex-end;
}

#alert-container.pos-bottom-left {
  bottom: 40px;
  left: 40px;
  right: auto;
  top: auto;
  align-items: flex-start;
}

#alert-container.pos-top-right {
  top: 40px;
  right: 40px;
  left: auto;
  bottom: auto;
  align-items: flex-end;
}

#alert-container.pos-top-left {
  top: 40px;
  left: 40px;
  right: auto;
  bottom: auto;
  align-items: flex-start;
}

#alert-container.pos-center {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  align-items: center;
}

.alert-card {
  width: 360px;
  padding: 20px;
  border-radius: 16px;
  background: var(--alert-bg-color, #1a1a2e);
  color: var(--alert-font-color, #fff);
  font-size: var(--alert-font-size, 16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
}

.alert-card.visible {
  opacity: 1;
}

.alert-card.hide {
  opacity: 0;
}

/* Animations */
.alert-card.anim-slide-up {
  transform: translateY(40px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.alert-card.anim-slide-up.visible {
  transform: translateY(0);
}

.alert-card.anim-slide-up.hide {
  transform: translateY(40px);
}

.alert-card.anim-fade {
  transition: opacity 0.45s ease;
}

.alert-card.anim-pop {
  transform: scale(0.85);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.alert-card.anim-pop.visible {
  transform: scale(1);
}

.alert-card.anim-pop.hide {
  transform: scale(0.9);
}

.alert-card.anim-bounce {
  transform: translateY(60px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.alert-card.anim-bounce.visible {
  transform: translateY(0);
}

.alert-card.anim-bounce.hide {
  transform: translateY(30px);
}

/* Themes */
.alert-card.theme-default {
  background: var(--alert-bg-color, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%));
}

.alert-card.theme-minimal {
  background: #ffffff;
  color: #111111;
  border: 2px solid #111111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.alert-card.theme-minimal .alert-label {
  color: #111111;
}

.alert-card.theme-minimal .alert-amount {
  color: #111111;
}

.alert-card.theme-neon {
  background: #0a0a0f;
  color: #e0ffff;
  border: 1px solid #00fff2;
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.35), inset 0 0 20px rgba(0, 255, 242, 0.05);
}

.alert-card.theme-neon .alert-label {
  color: #00fff2;
}

.alert-card.theme-neon .alert-amount {
  color: #ff00ff;
}

.alert-card.theme-cozy {
  background: linear-gradient(135deg, #3d2c29 0%, #6b4f4f 100%);
  color: #fff8f0;
  border: 1px solid rgba(255, 220, 180, 0.25);
}

.alert-card.theme-cozy .alert-label {
  color: #ffcc80;
}

.alert-card.theme-cozy .alert-amount {
  color: #ffe082;
}

.alert-card.theme-anime-pink {
  background: linear-gradient(135deg, #ff9ecf 0%, #ffc1e3 100%);
  color: #4a1942;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.35);
}

.alert-card.theme-anime-pink .alert-label {
  color: #d63384;
}

.alert-card.theme-anime-pink .alert-amount {
  color: #9c1f63;
}

.alert-label {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7bed9f;
  margin-bottom: 12px;
}

.alert-media-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.alert-image,
.alert-custom-media {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.alert-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 48px;
}

.alert-custom-media video {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.alert-product {
  font-size: 1.15em;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.alert-amount {
  font-size: 1.5em;
  font-weight: 800;
  color: #ffd32a;
}

.alert-customer,
.alert-country {
  margin-top: 6px;
  font-size: 0.9em;
  opacity: 0.85;
}

.alert-note {
  margin-top: 8px;
  font-size: 0.85em;
  opacity: 0.75;
  font-style: italic;
  line-height: 1.4;
}
