/* Immovare Cookie Consent — WOW banner */
:root {
  --icc-primary: #1a2b33;
  --icc-accent: #F2E347;
  --icc-secondary: #A2E9EE;
  --icc-surface: #ffffff;
  --icc-text: #1a2b33;
  --icc-muted: #4a5f6a;
  --icc-radius: 20px;
  --icc-shadow: 0 24px 64px rgba(26, 43, 51, 0.18);
}

#icc-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: Montserrat, system-ui, sans-serif;
}

#icc-root.icc-open {
  pointer-events: auto;
}

.icc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 51, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

#icc-root.icc-open .icc-backdrop {
  opacity: 1;
}

.icc-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: min(720px, calc(100% - 24px));
  margin-bottom: 16px;
  background: var(--icc-surface);
  color: var(--icc-text);
  border-radius: var(--icc-radius);
  box-shadow: var(--icc-shadow);
  padding: 28px 28px 22px;
  transition: transform 0.55s cubic-bezier(0.22, 1.2, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
  overflow: hidden;
}

#icc-root.icc-pos-center .icc-panel {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -40%) scale(0.96);
  margin-bottom: 0;
}

#icc-root.icc-open .icc-panel {
  transform: translate(-50%, 0);
  opacity: 1;
}

#icc-root.icc-pos-center.icc-open .icc-panel {
  transform: translate(-50%, -50%) scale(1);
}

.icc-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--icc-secondary), var(--icc-accent), var(--icc-primary));
}

.icc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--icc-muted);
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(12px);
}

.icc-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  opacity: 0;
  transform: translateY(14px);
}

.icc-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--icc-muted);
  margin: 0 0 18px;
  opacity: 0;
  transform: translateY(14px);
}

.icc-privacy {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--icc-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0;
}

#icc-root.icc-anim .icc-eyebrow,
#icc-root.icc-anim .icc-title,
#icc-root.icc-anim .icc-body,
#icc-root.icc-anim .icc-privacy,
#icc-root.icc-anim .icc-cats,
#icc-root.icc-anim .icc-actions {
  animation: iccRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#icc-root.icc-anim .icc-title { animation-delay: 0.08s; }
#icc-root.icc-anim .icc-body { animation-delay: 0.14s; }
#icc-root.icc-anim .icc-privacy { animation-delay: 0.18s; }
#icc-root.icc-anim .icc-cats { animation-delay: 0.22s; }
#icc-root.icc-anim .icc-actions { animation-delay: 0.28s; }

@keyframes iccRise {
  to { opacity: 1; transform: translateY(0); }
}

.icc-cats {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(14px);
}

.icc-cats[hidden] {
  display: none !important;
}

.icc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f4fbfc 0%, #eef8f9 100%);
  border: 1px solid rgba(162, 233, 238, 0.65);
}

.icc-cat h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
}

.icc-cat p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--icc-muted);
}

.icc-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
}

.icc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.icc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c5d4da;
  cursor: pointer;
  transition: background 0.25s ease;
}

.icc-switch span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform 0.25s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.icc-switch input:checked + span {
  background: var(--icc-primary);
}

.icc-switch input:checked + span::after {
  transform: translateX(18px);
}

.icc-switch input:disabled + span {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--icc-secondary);
}

.icc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
}

.icc-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.icc-btn-primary {
  background: var(--icc-accent);
  color: var(--icc-primary);
  box-shadow: 0 8px 20px rgba(242, 227, 71, 0.35);
}

.icc-btn-secondary {
  background: var(--icc-primary);
  color: #fff;
}

.icc-btn-ghost {
  background: transparent;
  color: var(--icc-primary);
  border: 1.5px solid rgba(26, 43, 51, 0.18);
}

.icc-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482990;
  border: 0;
  border-radius: 999px;
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, system-ui, sans-serif;
  background: var(--icc-accent);
  color: var(--icc-primary) !important;
  box-shadow: 0 10px 28px rgba(26, 43, 51, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease;
}

.icc-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 43, 51, 0.28);
}

.icc-fab-icon {
  display: block;
}

.icc-fab.icc-fab-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.icc-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.icc-confetti i {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.9;
  animation: iccFall 1.1s ease-out forwards;
}

@keyframes iccFall {
  to {
    transform: translateY(120px) rotate(220deg);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .icc-panel {
    width: calc(100% - 16px);
    padding: 22px 18px 18px;
    margin-bottom: 10px;
  }
  .icc-actions {
    flex-direction: column;
  }
  .icc-btn {
    width: 100%;
  }
}
