/* Scoopie cookie bar – tvar cookiesky */

.scoopie-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 1rem 1rem 1.25rem;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.scoopie-cookie-bar.is-visible {
  pointer-events: auto;
}

.scoopie-cookie-shell {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
  align-items: center;
  max-width: 640px;
  width: 100%;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 236, 200, 0.9), transparent 42%),
    linear-gradient(160deg, #fff8ef 0%, #ffe8d2 48%, #ffd7b8 100%);
  border: 2px solid rgba(176, 106, 42, 0.28);
  box-shadow:
    0 18px 40px rgba(80, 30, 10, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.scoopie-cookie-bar.is-visible .scoopie-cookie-shell {
  transform: translateY(0);
  opacity: 1;
}

.scoopie-cookie-bar.is-hiding .scoopie-cookie-shell {
  transform: translateY(120%);
  opacity: 0;
}

/* Samotná cookieska */
.scoopie-cookie {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffe0b0 0%, #f0b46a 42%, #d4893a 78%, #b86a28 100%);
  box-shadow:
    inset -8px -10px 0 rgba(140, 70, 20, 0.18),
    inset 6px 8px 0 rgba(255, 255, 255, 0.22),
    0 10px 18px rgba(120, 60, 20, 0.25);
  flex-shrink: 0;
  animation: scoopie-cookie-wiggle 3.2s ease-in-out infinite;
}

.scoopie-cookie .chip {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4a2a14;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
.scoopie-cookie .c1 { top: 18%; left: 28%; }
.scoopie-cookie .c2 { top: 30%; right: 22%; width: 10px; height: 10px; }
.scoopie-cookie .c3 { top: 52%; left: 20%; width: 14px; height: 11px; border-radius: 40%; }
.scoopie-cookie .c4 { bottom: 22%; right: 28%; }
.scoopie-cookie .c5 { top: 44%; left: 48%; width: 9px; height: 9px; }
.scoopie-cookie .c6 { bottom: 34%; left: 36%; width: 11px; height: 8px; border-radius: 40%; }

.scoopie-cookie .bite {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 10px 8px 0 0 #fff8ef;
  opacity: 0.95;
}

.scoopie-cookie-title {
  display: block;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #5a2e12;
  margin-bottom: 0.25rem;
}

.scoopie-cookie-text {
  margin: 0 0 0.45rem;
  color: #7a4a24;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.scoopie-cookie-link {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: #c2185b;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scoopie-cookie-prefs {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(176, 106, 42, 0.18);
}

.scoopie-cookie-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  font-weight: 700;
  color: #5a2e12;
  cursor: pointer;
}
.scoopie-cookie-check small {
  display: block;
  font-weight: 600;
  color: #9a6a42;
  margin-top: 0.1rem;
}
.scoopie-cookie-check input {
  margin-top: 0.2rem;
  accent-color: #ff2e8a;
}

.scoopie-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.scoopie-cookie-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.scoopie-cookie-btn:hover { transform: translateY(-1px); }
.scoopie-cookie-btn:active { transform: translateY(0); }

.scoopie-cookie-btn.primary {
  background: linear-gradient(135deg, #ff4db8, #e01575);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 46, 138, 0.28);
}
.scoopie-cookie-btn.soft {
  background: #fff;
  color: #5a2e12;
  border: 1.5px solid rgba(176, 106, 42, 0.25);
}
.scoopie-cookie-btn.ghost {
  background: rgba(255, 255, 255, 0.35);
  color: #7a4a24;
  border: 1.5px solid rgba(176, 106, 42, 0.2);
}

@keyframes scoopie-cookie-wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

@media (max-width: 640px) {
  .scoopie-cookie-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    border-radius: 32px 32px 22px 22px;
    padding-top: 1.15rem;
  }
  .scoopie-cookie {
    width: 76px;
    height: 76px;
  }
  .scoopie-cookie-actions {
    justify-content: center;
  }
  .scoopie-cookie-check {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scoopie-cookie { animation: none; }
  .scoopie-cookie-shell { transition: none; }
}
