/* ==========================================================================
   Cookie-Consent Banner & YouTube-Overlay
   ========================================================================== */

/* ---------- Banner ---------- */
.kis-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: #fff;
  color: #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 4px 12px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.08);
  padding: 22px 24px;
  max-width: 1100px;
  margin: 0 auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  font-size: 15px;
  line-height: 1.5;
}
.kis-cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.kis-cookie-banner .kis-cc-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "text options"
    "actions actions";
  gap: 18px 28px;
  align-items: start;
}
.kis-cookie-banner .kis-cc-text { grid-area: text; }
.kis-cookie-banner .kis-cc-options { grid-area: options; display: flex; flex-direction: column; gap: 10px; }
.kis-cookie-banner .kis-cc-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 14px;
}
.kis-cookie-banner h2 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.kis-cookie-banner p {
  margin: 0;
  color: #444;
  font-size: .92rem;
}
.kis-cookie-banner a { color: var(--orange-500, #f08a1c); text-decoration: underline; }

.kis-cc-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f7f7f5;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
}
.kis-cc-opt input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--orange-500, #f08a1c);
  flex-shrink: 0;
}
.kis-cc-opt span { display: flex; flex-direction: column; }
.kis-cc-opt small { color: #666; font-size: .82rem; margin-top: 2px; }

.kis-cookie-banner .btn {
  font-size: .92rem;
  padding: 10px 18px;
}

@media (max-width: 768px) {
  .kis-cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 18px;
    max-height: 88vh;
    overflow-y: auto;
  }
  .kis-cookie-banner .kis-cc-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "options"
      "actions";
    gap: 14px;
  }
  .kis-cookie-banner .kis-cc-actions { justify-content: stretch; }
  .kis-cookie-banner .kis-cc-actions .btn { flex: 1 1 auto; }
  .kis-cookie-banner h2 { font-size: 1.05rem; }
}

/* ---------- YouTube-Overlay ---------- */
.yt-consent-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.yt-consent-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.yt-consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(20,20,25,.92), rgba(40,30,20,.88)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px);
  color: #fff;
  padding: 24px;
  border-radius: inherit;
  text-align: center;
  z-index: 2;
  backdrop-filter: blur(2px);
}
.yt-consent-inner {
  max-width: 480px;
}
.yt-consent-icon {
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
}
.yt-consent-overlay h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.yt-consent-overlay p {
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
.yt-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}
.yt-consent-overlay .btn { font-size: .9rem; padding: 9px 16px; }
.yt-consent-overlay .btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.yt-consent-overlay .btn-outline:hover {
  background: rgba(255,255,255,.12);
}
.yt-consent-note {
  font-size: .78rem !important;
  color: rgba(255,255,255,.7) !important;
  margin: 6px 0 0 !important;
}
.yt-consent-note a { color: #fff; text-decoration: underline; }

@media (max-width: 540px) {
  .yt-consent-overlay { padding: 16px; }
  .yt-consent-overlay h3 { font-size: 1.05rem; }
  .yt-consent-overlay p { font-size: .85rem; }
  .yt-consent-buttons .btn { width: 100%; }
}
