:root {
  --heftruck-accent: #1393e2;
  --heftruck-bg: rgba(7, 13, 24, 0.96);
  --heftruck-panel: rgba(255, 255, 255, 0.08);
  --heftruck-text: #ffffff;
  --heftruck-muted: rgba(255, 255, 255, 0.78);
  --heftruck-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.heftruck-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  color: var(--heftruck-text);
  font-family: Arial, sans-serif;
}

.heftruck-cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--heftruck-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: var(--heftruck-shadow);
  backdrop-filter: blur(8px);
}

.heftruck-scene {
  position: relative;
  height: 115px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.heftruck-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 6px;
  background: linear-gradient(90deg, transparent 0, rgba(255,255,255,0.25) 10%, rgba(255,255,255,0.25) 90%, transparent 100%);
}

.heftruck-rig {
  position: absolute;
  bottom: 22px;
  left: -220px;
  width: 210px;
  height: 74px;
  animation: heftruckDrive 5.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.28));
}

.heftruck-image {
  width: 168px;
  height: auto;
  display: block;
}

.forks-lift {
  position: absolute;
  right: 4px;
  bottom: 1px;
  width: 62px;
  height: 52px;
  animation: forksLift 5.6s ease-in-out infinite;
}

.cookie-on-forks,
.heftruck-cookie {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #f3c98d 0, #f3c98d 42%, #cd8e48 43%, #b56e2d 100%);
  box-shadow:
    inset -3px -4px 0 rgba(0,0,0,0.08),
    0 6px 12px rgba(0,0,0,0.22);
}

.cookie-on-forks {
  position: absolute;
  right: 9px;
  bottom: 22px;
}

.cookie-on-forks::before,
.cookie-on-forks::after,
.heftruck-cookie::before,
.heftruck-cookie::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(78, 46, 22, 0.75);
}

.cookie-on-forks::before,
.heftruck-cookie::before { top: 7px; left: 8px; }
.cookie-on-forks::after,
.heftruck-cookie::after { top: 14px; right: 7px; }

.heftruck-cookie::marker { content: ''; }

.heftruck-cookie.cookie-one {
  position: absolute;
  right: 44px;
  bottom: 22px;
  animation: looseCookieOne 5.6s ease-in-out infinite;
}

.heftruck-cookie.cookie-two {
  position: absolute;
  right: 14px;
  bottom: 22px;
  animation: looseCookieTwo 5.6s ease-in-out infinite;
}

.heftruck-cookie-banner__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.heftruck-cookie-banner__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--heftruck-muted);
}

.heftruck-cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.heftruck-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.heftruck-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.heftruck-btn:hover {
  transform: translateY(-1px);
}

.heftruck-btn--primary {
  background: var(--heftruck-accent);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--heftruck-accent) 35%, transparent);
}

.heftruck-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}

@keyframes heftruckDrive {
  0%   { transform: translateX(0) translateY(0); }
  18%  { transform: translateX(168px) translateY(0); }
  42%  { transform: translateX(168px) translateY(0); }
  64%  { transform: translateX(312px) translateY(0); }
  100% { transform: translateX(560px) translateY(0); }
}

@keyframes forksLift {
  0%, 16% { transform: translateY(0); }
  24%, 45% { transform: translateY(-18px); }
  56%, 100% { transform: translateY(0); }
}

@keyframes looseCookieOne {
  0%, 12% { opacity: 1; transform: translate(0,0) scale(1); }
  20%, 34% { opacity: 1; transform: translate(-5px,0) scale(1); }
  36% { opacity: 0; transform: translate(-12px,-20px) scale(.7); }
  100% { opacity: 0; transform: translate(-12px,-20px) scale(.7); }
}

@keyframes looseCookieTwo {
  0%, 55% { opacity: 1; transform: translate(0,0) scale(1); }
  66% { opacity: 0; transform: translate(14px,-12px) scale(.75); }
  100% { opacity: 0; transform: translate(14px,-12px) scale(.75); }
}

@media (max-width: 980px) {
  .heftruck-cookie-banner__inner {
    grid-template-columns: 1fr;
  }

  .heftruck-cookie-banner__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .heftruck-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .heftruck-cookie-banner__inner {
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .heftruck-scene {
    height: 100px;
  }

  .heftruck-rig {
    transform: scale(.92);
    transform-origin: left bottom;
  }

  .heftruck-cookie-banner__title {
    font-size: 18px;
  }

  .heftruck-cookie-banner__text {
    font-size: 14px;
  }

  .heftruck-cookie-banner__actions {
    width: 100%;
  }

  .heftruck-btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }
}
