#ga-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9998;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#ga-cookie-banner h4 {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

#ga-cookie-banner p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.95rem;
}

.ga-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ga-btn {
  border: none;
  border-radius: 9999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ga-btn.primary {
  background: #8b4a5a;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(139, 74, 90, 0.18);
}

.ga-btn.primary:hover,
.ga-btn.primary:focus-visible {
  background: #7a4050;
  outline: none;
}

.ga-btn.secondary {
  background: #f3f4f6;
  color: #111827;
}

.ga-btn.secondary:hover,
.ga-btn.secondary:focus-visible {
  background: #e5e7eb;
  outline: none;
}

.ga-btn.link {
  background: transparent;
  color: #8b4a5a;
  padding-left: 0;
  padding-right: 0;
}

.ga-btn.link:hover,
.ga-btn.link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.ga-cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9998;
}

.ga-cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 640px);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 9999;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ga-cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ga-cookie-modal h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

#ga-cookie-modal p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.975rem;
}

.ga-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #6b7280;
}

.ga-modal-close:hover,
.ga-modal-close:focus-visible {
  color: #111827;
  outline: none;
}

.ga-cookie-group {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.ga-cookie-group:last-of-type {
  border-bottom: none;
}

.ga-cookie-group-text h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
}

.ga-cookie-group-text p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.95rem;
}

.ga-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #8b4a5a;
}

.ga-toggle input[type='checkbox'] {
  width: 48px;
  height: 24px;
  appearance: none;
  background: #d1d5db;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ga-toggle input[type='checkbox']::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.ga-toggle input[type='checkbox']:checked {
  background: rgba(139, 74, 90, 0.65);
}

.ga-toggle input[type='checkbox']:checked::after {
  transform: translateX(24px);
}

.ga-toggle.disabled {
  color: #9ca3af;
}

.ga-toggle.disabled input[type='checkbox'] {
  cursor: not-allowed;
}

.ga-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ga-cookie-footer-text {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.ga-cookie-footer-text a {
  color: #8b4a5a;
}

.ga-cookie-footer-text a:hover,
.ga-cookie-footer-text a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.ga-cookie-group.disabled {
  opacity: 0.75;
}

body.ga-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  #ga-cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    transform: none;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }

  .ga-cookie-banner-actions {
    flex-direction: column;
  }

  .ga-btn {
    width: 100%;
    text-align: center;
  }

  .ga-cookie-modal {
    width: min(94vw, 640px);
    padding: 22px;
    max-height: 92vh;
  }

  .ga-cookie-group {
    flex-direction: column;
  }

  .ga-toggle {
    justify-content: space-between;
  }
}

