/* =========================================================
   Webix Cookie Consent — cookie-consent.css
   Author: Webix (https://webix.ge)
   ========================================================= */

:root {
  --wcc-accent:       #2563eb;
  --wcc-accent-dark:  #1d4ed8;
  --wcc-bg:           #0f172a;
  --wcc-surface:      #1e293b;
  --wcc-border:       rgba(255,255,255,.08);
  --wcc-text:         #e2e8f0;
  --wcc-muted:        #94a3b8;
  --wcc-radius:       16px;
  --wcc-shadow:       0 25px 60px rgba(0,0,0,.45), 0 8px 20px rgba(0,0,0,.3);
  --wcc-transition:   .4s cubic-bezier(.16,1,.3,1);
}

/* ── Overlay (center modal only) ─────────────────────────── */
#wcc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  transition: opacity var(--wcc-transition);
}
#wcc-overlay.wcc-visible { opacity: 1; }

/* ── Banner wrapper ──────────────────────────────────────── */
#wcc-banner {
  position: fixed;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wcc-text);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--wcc-transition), transform var(--wcc-transition);
}
#wcc-banner.wcc-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Position: bottom (default) ─────────────────────────── */
#wcc-banner.wcc-pos-bottom {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: min(760px, calc(100vw - 32px));
}
#wcc-banner.wcc-pos-bottom.wcc-visible {
  transform: translateX(-50%) translateY(0);
}

/* ── Position: top ──────────────────────────────────────── */
#wcc-banner.wcc-pos-top {
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  width: min(760px, calc(100vw - 32px));
}
#wcc-banner.wcc-pos-top.wcc-visible {
  transform: translateX(-50%) translateY(0);
}

/* ── Position: center ───────────────────────────────────── */
#wcc-banner.wcc-pos-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 20px)) scale(.96);
  width: min(520px, calc(100vw - 32px));
}
#wcc-banner.wcc-pos-center.wcc-visible {
  transform: translate(-50%, -50%) scale(1);
}

/* ── Inner card ─────────────────────────────────────────── */
.wcc-card {
  background: var(--wcc-bg);
  border: 1px solid var(--wcc-border);
  border-radius: var(--wcc-radius);
  box-shadow: var(--wcc-shadow);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

/* Decorative top accent line */
.wcc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--wcc-accent), #7c3aed, #06b6d4);
  border-radius: var(--wcc-radius) var(--wcc-radius) 0 0;
}

/* Subtle glow behind card */
.wcc-card::after {
  content: "";
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Layout inside card ─────────────────────────────────── */
.wcc-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wcc-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.wcc-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wcc-content { flex: 1; min-width: 0; }

.wcc-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}

.wcc-text {
  margin: 0 0 14px;
  color: var(--wcc-muted);
  font-size: 13.5px;
}

.wcc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────── */
.wcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s, box-shadow .18s, transform .12s;
  white-space: nowrap;
  letter-spacing: .01em;
  font-family: inherit;
  text-decoration: none;
}
.wcc-btn:active { transform: scale(.97); }

.wcc-btn-accept {
  background: var(--wcc-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.4);
}
.wcc-btn-accept:hover {
  background: var(--wcc-accent-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.55);
}

.wcc-btn-decline {
  background: transparent;
  color: var(--wcc-muted);
  border: 1px solid rgba(255,255,255,.12);
}
.wcc-btn-decline:hover {
  background: rgba(255,255,255,.06);
  color: var(--wcc-text);
}

.wcc-policy-link {
  font-size: 12.5px;
  color: var(--wcc-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .15s;
}
.wcc-policy-link:hover { color: var(--wcc-text); }

/* ── Branding badge ─────────────────────────────────────── */
.wcc-brand {
  position: absolute;
  bottom: 10px; right: 14px;
  font-size: 10px;
  color: rgba(255,255,255,.2);
  text-decoration: none;
  letter-spacing: .04em;
}
.wcc-brand:hover { color: rgba(255,255,255,.45); }

/* ── Center modal tweaks ─────────────────────────────────── */
.wcc-pos-center .wcc-inner { flex-direction: column; align-items: flex-start; }
.wcc-pos-center .wcc-icon { width: 64px; height: 64px; }
.wcc-pos-center .wcc-title { font-size: 18px; }
.wcc-pos-center .wcc-text { font-size: 14px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .wcc-card { padding: 20px; }
  .wcc-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wcc-icon { display: none; }
  .wcc-actions { width: 100%; }
  .wcc-btn-accept, .wcc-btn-decline { flex: 1; text-align: center; }
}

/* ── Exit animation ─────────────────────────────────────── */
#wcc-banner.wcc-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(20px) !important;
  transition: opacity .3s ease, transform .3s ease;
}
#wcc-banner.wcc-pos-top.wcc-hiding {
  transform: translateX(-50%) translateY(-20px) !important;
}
#wcc-banner.wcc-pos-center.wcc-hiding {
  transform: translate(-50%, -50%) scale(.94) !important;
}
