/* zerocookie.css - responsive, conflict-safe */

/* Trigger (bottom-left) */
#zerocookie-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 9999;
  width: 56px;
  height: 56px;
}
#zerocookie-trigger img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
#zerocookie-trigger:hover img {
  transform: scale(1.06);
}

/* Widget container: initially hidden & click-through */
#zerocookie-widget {
  position: fixed;
  bottom: 88px;
  left: 20px;
  width: min(90vw, 400px);
  max-width: 92vw;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  color: #ffffff;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  z-index: 10000;
  pointer-events: none; /* click-through when hidden */
  overflow: hidden;
}

#zerocookie-widget.zerocookie-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Content layers */
.zerocookie-content {
  position: relative;
  min-height: 140px;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

/* Background image layer */
.zerocookie-content .zc-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.05);
}

/* Overlay layer (color is injected inline via data attr + JS) */
.zerocookie-content .zc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* Foreground content */
.zerocookie-content .zc-inner {
  position: relative;
  padding: 18px 16px 16px;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.85);
}

/* Headline */
.zerocookie-content .zc-headline {
  font-weight: 800;
  letter-spacing: 0.6px;
  margin: 6px 0 10px;
  font-size: 18px;
}

/* Links */
.zerocookie-content a.zc-privacy-link {
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(0,255,255,0.6);
}
.zerocookie-content a.zc-privacy-link:hover {
  text-decoration: none;
  text-shadow: 0 0 8px rgba(0,255,255,0.9);
}

/* "Protected by" area */
.zerocookie-content .zc-powered {
  margin-top: 16px;
}
.zerocookie-content .zc-logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.zerocookie-content .zc-powered-caption {
  font-size: 13px;
  letter-spacing: 0.4px;
  transition: text-shadow 0.2s ease;
}
.zerocookie-content .zc-powered a:hover .zc-powered-caption {
  text-shadow: 0 0 6px rgba(0,255,255,0.8);
}

/* Close button */
#zerocookie-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.85);
}
#zerocookie-close:hover { opacity: 0.9; }

@media (max-width: 480px) {
  #zerocookie-widget { left: 12px; width: calc(100% - 24px); bottom: 78px; }
  .zerocookie-content .zc-headline { font-size: 16px; }
}
/* Wrapper around the Zerocookie shield + widget */
.zc-shield-wrapper {
    position: relative;
    display: inline-block;
}

/* When invalid, dim/blur the underlying content */
.zc-shield-wrapper.zc-shield-invalid > *:not(.zc-shield-overlay) {
    filter: blur(2px) brightness(0.5);
    pointer-events: none;
}

/* Red overlay with LICENSE INVALID text */
.zc-shield-overlay {
    position: absolute;
    inset: 0;
    background: rgba(140, 0, 0, 0.65);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 1px 1px 3px #000;
    letter-spacing: 1px;
    z-index: 9999;
    pointer-events: none;
    border-radius: 8px;
}

.zc-shield-overlay span {
    padding: 0.5em 1em;
    border: 2px solid #fff;
    border-radius: 4px;
}
.zc-shield-wrapper {
    position: relative;
    display: inline-block;
}

/* When invalid, dim/blur the underlying content */
.zc-shield-wrapper.zc-shield-invalid > *:not(.zc-shield-overlay) {
    filter: blur(2px) brightness(0.5);
    pointer-events: none;
}

/* Red overlay with LICENSE INVALID text */
.zc-shield-overlay {
    position: absolute;
    inset: 0;
    background: rgba(140, 0, 0, 0.65);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 1px 1px 3px #000;
    letter-spacing: 1px;
    z-index: 9999;
    pointer-events: none;
    border-radius: 8px;
}

.zc-shield-overlay span {
    padding: 0.5em 1em;
    border: 2px solid #fff;
    border-radius: 4px;
}
/* Wrapper around the Zerocookie shield + widget */
.zc-shield-wrapper {
    position: relative;
    display: inline-block;
}

/* When invalid, dim/blur the underlying content */
.zc-shield-wrapper.zc-shield-invalid > *:not(.zc-shield-overlay) {
    filter: blur(2px) brightness(0.5);
    pointer-events: none;
}

/* Red overlay with LICENSE INVALID text */
.zc-shield-overlay {
    position: absolute;
    inset: 0;
    background: rgba(140, 0, 0, 0.65);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 1px 1px 3px #000;
    letter-spacing: 1px;
    z-index: 9999;
    pointer-events: none;
    border-radius: 8px;
}

/* Tooltip container (hidden by default) */
.zc-license-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: #222;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 4px;
    max-width: 260px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
    text-align: center;
    white-space: normal;
}

/* Little arrow under tooltip */
.zc-license-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

/* Show tooltip on hover of overlay or wrapper when invalid */
.zc-shield-wrapper.zc-shield-invalid:hover .zc-license-tooltip,
.zc-shield-wrapper.zc-shield-invalid .zc-shield-overlay:hover .zc-license-tooltip {
    opacity: 1;
}

/* Optional: special styling when trial_expired (e.g., different color) */
.zc-shield-wrapper.zc-shield-invalid.zc-status-trial_expired .zc-license-tooltip {
    background: #b33;
}
.zc-shield-wrapper.zc-shield-invalid.zc-status-trial_expired .zc-license-tooltip::after {
    border-color: #b33 transparent transparent transparent;
}
