/**
 * EU Cookie Consent — front styles
 */
.eucc-root {
  --eucc-bg: #ffffff;
  --eucc-text: #222222;
  --eucc-primary: #1a73e8;
  --eucc-secondary: #5f6368;
  --eucc-border: #dadce0;
}

.eucc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.45);
  animation: eucc-fade 0.2s ease;
}

.eucc-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99999;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.25rem 1.5rem;
  background: var(--eucc-bg);
  color: var(--eucc-text);
  border: 1px solid var(--eucc-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: eucc-slide 0.35s ease;
}

.eucc-banner.eucc-pos-top {
  top: 0;
  bottom: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.eucc-banner.eucc-pos-bottom {
  bottom: 0;
  top: auto;
}

.eucc-banner.eucc-floating {
  left: 1rem;
  right: 1rem;
  max-width: 640px;
  margin: 0 auto 1rem;
  border-radius: 8px;
}

.eucc-banner.eucc-pos-bottom.eucc-floating {
  bottom: 1rem;
}

.eucc-banner.eucc-pos-top.eucc-floating {
  top: 1rem;
  bottom: auto;
}

.eucc-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.eucc-intro {
  margin: 0 0 1rem;
}

.eucc-intro a {
  color: var(--eucc-primary);
  text-decoration: underline;
}

.eucc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.eucc-btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.eucc-btn:hover {
  opacity: 0.92;
}

.eucc-btn:active {
  transform: scale(0.98);
}

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

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

.eucc-btn-ghost {
  background: transparent;
  color: var(--eucc-text);
  border: 1px solid var(--eucc-border);
}

.eucc-modal {
  position: fixed;
  z-index: 100000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 2rem));
  max-height: min(85vh, 640px);
  overflow: auto;
  background: var(--eucc-bg);
  color: var(--eucc-text);
  border: 1px solid var(--eucc-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  animation: eucc-fade 0.2s ease;
}

.eucc-modal h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.eucc-cat {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--eucc-border);
}

.eucc-cat:last-of-type {
  border-bottom: none;
}

.eucc-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.eucc-cat-title {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.eucc-cat-desc {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.9;
}

.eucc-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.eucc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.2s;
}

.eucc-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.eucc-switch input:checked + .eucc-slider {
  background: var(--eucc-primary);
}

.eucc-switch input:checked + .eucc-slider:before {
  transform: translateX(20px);
}

.eucc-switch input:disabled + .eucc-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.eucc-reopen {
  position: fixed;
  z-index: 99990;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  background: var(--eucc-bg);
  color: var(--eucc-text);
  border: 1px solid var(--eucc-border);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

.eucc-reopen:hover {
  opacity: 0.9;
}

.eucc-hidden {
  display: none !important;
}

@keyframes eucc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes eucc-slide {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .eucc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .eucc-btn {
    width: 100%;
  }
}
