/**
 * frontend.css — Simple Analytics RGPD
 */

#sa-cookie-banner,
#sa-cookie-banner *,
#sa-revoke-consent,
#sa-revoke-consent * {
  box-sizing: border-box;
}

#sa-cookie-banner button,
#sa-revoke-consent button,
#sa-cookie-banner button[type="button"],
#sa-revoke-consent button[type="button"],
#sa-accept-btn,
#sa-refuse-btn,
#sa-cookie-widget {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  outline: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  font: inherit !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

#sa-cookie-banner button::-moz-focus-inner,
#sa-revoke-consent button::-moz-focus-inner {
  border: 0 !important;
  padding: 0 !important;
}

#sa-cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  opacity: 0;
  z-index: 999999;
  width: calc(100% - 40px);
  max-width: 700px;
  border-radius: 20px;
  background: rgba(18, 18, 32, 0.68);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.45s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #fff;
}

#sa-cookie-banner.sa-banner-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#sa-cookie-banner .sa-glass-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

#sa-cookie-banner .sa-banner-text {
  flex: 1;
  min-width: 200px;
}

#sa-cookie-banner .sa-banner-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 6px;
}

#sa-cookie-banner .sa-banner-text p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

#sa-cookie-banner .sa-banner-text a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.15s ease;
}

#sa-cookie-banner .sa-banner-text a:hover {
  opacity: 0.7;
}

#sa-cookie-banner .sa-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#sa-cookie-banner .sa-btn,
#sa-cookie-banner #sa-accept-btn,
#sa-cookie-banner #sa-refuse-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 10px 22px !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-align: center !important;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease !important;
}

#sa-cookie-banner .sa-btn:hover,
#sa-cookie-banner #sa-accept-btn:hover,
#sa-cookie-banner #sa-refuse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
  filter: brightness(1.03);
}

#sa-cookie-banner .sa-btn:active,
#sa-cookie-banner #sa-accept-btn:active,
#sa-cookie-banner #sa-refuse-btn:active {
  transform: translateY(0);
  box-shadow: none !important;
}

#sa-cookie-banner .sa-btn-primary,
#sa-cookie-banner .sa-btn-secondary {
  color: #fff !important;
  border: none !important;
}

#sa-cookie-banner #sa-accept-btn:focus-visible,
#sa-cookie-banner #sa-refuse-btn:focus-visible,
#sa-revoke-consent #sa-cookie-widget:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

#sa-revoke-consent {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999998;
}

#sa-revoke-consent #sa-cookie-widget,
#sa-cookie-widget {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  background: rgba(18, 18, 32, 0.65) !important;
  color: #fff !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease !important;
}

#sa-revoke-consent #sa-cookie-widget:hover,
#sa-cookie-widget:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

#sa-revoke-consent .sa-cookie-widget-emoji {
  font-size: 22px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* ─────────────── Services blocked placeholders ─────────────── */

.sa-embed-blocked {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(18, 18, 32, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.sa-embed-blocked[data-sa-service="youtube"],
.sa-embed-blocked[data-sa-service="vimeo"] {
  aspect-ratio: 16 / 9;
}

.sa-embed-blocked[data-sa-service="google-maps"] {
  min-height: 360px;
}

.sa-embed-blocked-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(20,20,30,0.75), rgba(20,20,30,0.92));
}

.sa-embed-blocked-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.sa-embed-blocked-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 38ch;
  color: rgba(255,255,255,.82);
}

.sa-embed-blocked-link {
  color: #fff !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease;
}

.sa-embed-blocked-link:hover {
  opacity: 0.85 !important;
}

@media (max-width: 520px) {
  #sa-cookie-banner {
    bottom: 12px;
    border-radius: 14px;
  }

  #sa-cookie-banner .sa-glass-inner {
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
  }

  #sa-cookie-banner .sa-banner-actions {
    width: 100%;
  }

  #sa-cookie-banner .sa-btn,
  #sa-cookie-banner #sa-accept-btn,
  #sa-cookie-banner #sa-refuse-btn {
    flex: 1;
    padding: 11px 16px !important;
  }

  #sa-revoke-consent {
    bottom: 12px;
    right: 10px;
  }
}


/* ─────────────── Services blocked placeholders ─────────────── */

.sa-embed-blocked {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(18, 18, 32, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: opacity 0.25s ease;
}

.sa-embed-blocked[data-sa-service="youtube"],
.sa-embed-blocked[data-sa-service="vimeo"] {
  aspect-ratio: 16 / 9;
}

.sa-embed-blocked[data-sa-service="google-maps"] {
  min-height: 360px;
}

.sa-embed-blocked-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(20,20,30,0.75), rgba(20,20,30,0.92));
}

.sa-embed-blocked-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.sa-embed-blocked-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 38ch;
  color: rgba(255,255,255,.82);
}

.sa-embed-blocked-link {
  color: #fff !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.15s ease;
}

.sa-embed-blocked-link:hover {
  opacity: 0.85 !important;
}

@media (max-width: 520px) {
  .sa-embed-blocked-inner {
    padding: 20px 16px;
  }

  .sa-embed-blocked[data-sa-service="google-maps"] {
    min-height: 300px;
  }
}