﻿/* ════════════════════════════════════════════════════
   COOKIE CONSENT BANNER — production
   Cookiebot-style bottom banner, brand-themed.
   Loaded on every page via Top.IG.Master.
   ════════════════════════════════════════════════════ */

.cc-overlay {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  display: none;
  pointer-events: none;
}
.cc-overlay.cc-visible { display: block; }

.cc-card {
  background: #ffffff;
  border-top: 2px solid var(--terracotta, #fc5936);
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 -8px 28px rgba(74,14,0,0.15);
  animation: ccSlideUp 0.35s ease;
  position: relative;
  pointer-events: auto;
}
@keyframes ccSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.cc-inner { max-width: 1240px; margin: 0 auto; position: relative; }

.cc-close-x {
  position: absolute; top: 6px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted, #a16556); cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.cc-close-x:hover { background: var(--petal, #ffe9d9); color: var(--mahogany, #4a0e00); }
.cc-close-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
html[dir="rtl"] .cc-close-x { right: auto; left: 10px; }

.cc-logo {
  position: absolute; top: 11px; left: 24px;
  display: flex; align-items: center; gap: 7px;
  color: var(--mahogany, #4a0e00); font-weight: 800; font-size: 0.85rem; letter-spacing: -0.01em;
  z-index: 1;
}
.cc-logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta, #fc5936); }
html[dir="rtl"] .cc-logo { left: auto; right: 24px; }

.cc-tabs {
  display: flex;
  border-bottom: 1px solid rgba(74,14,0,0.08);
  padding: 0 24px 0 140px;
  gap: 20px;
}
html[dir="rtl"] .cc-tabs { padding: 0 140px 0 24px; }
.cc-tab {
  background: none; border: none; cursor: pointer;
  padding: 9px 4px;
  font-family: inherit; font-size: 0.88rem; font-weight: 600;
  color: var(--muted, #a16556);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.cc-tab:hover { color: var(--mahogany, #4a0e00); }
.cc-tab.cc-tab-active { color: var(--terracotta, #fc5936); border-bottom-color: var(--terracotta, #fc5936); }

.cc-pane { display: none; padding: 12px 24px 6px; }
.cc-pane.cc-pane-active { display: block; }
.cc-pane h2 { font-size: 0.98rem; font-weight: 800; color: var(--mahogany, #4a0e00); margin: 0 0 4px; letter-spacing: -0.01em; }
.cc-pane p { color: var(--muted, #a16556); font-size: 0.85rem; line-height: 1.55; margin: 0 0 6px; }
.cc-pane p:last-child { margin-bottom: 0; }
.cc-pane a { color: var(--terracotta, #fc5936); font-weight: 600; }

.cc-category {
  padding: 10px 0;
  border-top: 1px solid rgba(74,14,0,0.08);
}
.cc-category:first-child { border-top: none; padding-top: 6px; }
.cc-category-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 3px;
}
.cc-category-name { font-weight: 800; color: var(--mahogany, #4a0e00); font-size: 0.9rem; }
.cc-category-desc { color: var(--muted, #a16556); font-size: 0.82rem; line-height: 1.5; }

.cc-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-toggle-track {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(74,14,0,0.18); border-radius: 100px;
  transition: background 0.2s;
}
.cc-toggle-track::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: white; border-radius: 50%;
  transition: transform 0.2s;
}
.cc-toggle input:checked + .cc-toggle-track { background: var(--terracotta, #fc5936); }
.cc-toggle input:checked + .cc-toggle-track::before { transform: translateX(20px); }
.cc-toggle input:disabled + .cc-toggle-track { background: var(--terracotta, #fc5936); opacity: 0.4; cursor: not-allowed; }
html[dir="rtl"] .cc-toggle input:checked + .cc-toggle-track::before { transform: translateX(-20px); }

.cc-actions {
  border-top: 1px solid rgba(74,14,0,0.08);
  padding: 10px 24px 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.cc-btn {
  font-family: inherit; font-weight: 700; font-size: 0.88rem;
  padding: 10px 14px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: var(--terracotta, #fc5936); color: white;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
}
.cc-btn:hover { background: var(--mahogany, #4a0e00); }
.cc-btn svg {
  width: 12px; height: 12px; stroke: currentColor;
  stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
html[dir="rtl"] .cc-btn svg { transform: scaleX(-1); }

.cc-lang-hidden { display: none !important; }

@media (max-width: 720px) {
  .cc-card { max-height: 75vh; }
  .cc-tabs { padding: 36px 16px 0; gap: 14px; }
  html[dir="rtl"] .cc-tabs { padding: 36px 16px 0; }
  .cc-tab { font-size: 0.85rem; padding: 8px 4px; }
  .cc-pane { padding: 12px 16px 6px; }
  .cc-actions { grid-template-columns: 1fr; padding: 10px 16px 12px; gap: 6px; }
  .cc-btn { padding: 11px 14px; font-size: 0.88rem; }
  .cc-logo { left: 16px; top: 10px; font-size: 0.82rem; }
  html[dir="rtl"] .cc-logo { left: auto; right: 16px; }
}

/* Footer "Cookie Settings" link */
.cc-footer-link { cursor: pointer; }
