/* ============================================================
   Cookie Consent Widget — fondovik.info
   ============================================================ */

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card, #FFFFFF);
  color: var(--text, #1A1A2E);
  border: 1px solid var(--border, #E8ECF1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 12px 14px;
  font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
  display: none;
}

.cc-banner.is-visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.cc-banner__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text, #1A1A2E);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-banner__title-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.cc-banner__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary, #5A6478);
  margin-bottom: 10px;
}

.cc-banner__text a {
  color: var(--primary, #2563EB);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-banner__text a:hover {
  color: var(--primary-hover, #1D4FD7);
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cc-btn:focus-visible {
  outline: 2px solid var(--primary, #2563EB);
  outline-offset: 2px;
}

.cc-btn--primary {
  background: var(--primary, #2563EB);
  color: #FFFFFF;
}

.cc-btn--primary:hover {
  background: var(--primary-hover, #1D4FD7);
}

.cc-btn--ghost {
  background: transparent;
  color: var(--text, #1A1A2E);
  border-color: var(--border, #E8ECF1);
}

.cc-btn--ghost:hover {
  background: var(--bg, #F8F9FB);
  border-color: #D7DCE4;
}

.cc-btn--link {
  background: transparent;
  color: var(--text-secondary, #5A6478);
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-btn--link:hover {
  color: var(--text, #1A1A2E);
}

/* Settings panel */
.cc-banner__settings {
  margin: 2px 0 10px;
  padding: 8px 10px;
  background: var(--bg, #F8F9FB);
  border: 1px solid var(--border-light, #F1F3F6);
  border-radius: 8px;
  display: none;
}

.cc-banner__settings.is-open {
  display: block;
}

.cc-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 2px;
}

.cc-option + .cc-option {
  border-top: 1px solid var(--border-light, #F1F3F6);
}

.cc-option__body {
  flex: 1;
  min-width: 0;
}

.cc-option__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text, #1A1A2E);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cc-option__hint {
  font-size: 0.7rem;
  color: var(--text-muted, #9CA3B4);
  font-weight: 500;
}

.cc-option__desc {
  font-size: 0.75rem;
  color: var(--text-secondary, #5A6478);
  line-height: 1.4;
  margin-top: 2px;
}

@media (max-width: 540px) {
  .cc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .cc-banner__actions {
    justify-content: stretch;
  }

  .cc-banner__actions .cc-btn {
    flex: 1 1 auto;
    min-width: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner {
    transition: none;
  }
}
