/*!
 * TerraVida Cookie Notice — banner CSS v2.0
 * - Manrope font @import eltávolítva (téma adja, fallback system-ui)
 * - tvCookieShine folyamatos shimmer loop eltávolítva
 * - Hover scale transformok egyszerűsítve
 */

  .tv-cookie {
    --ck-dark: #1B3B34;
    --ck-dark2: #264840;
    --ck-gold: #FBE973;
    --ck-gold-deep: #D4A528;
    --ck-cream: #F5F0E1;
    --ck-muted: #a8b5a0;
    --ck-border: rgba(251,233,115,.15);
    --ck-glow: rgba(251,233,115,.25);
    --ck-radius: 60px;
    --ck-radius-panel: 28px;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    padding: 0 16px 20px;
    pointer-events: none;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  }

  .tv-cookie-inner {
    pointer-events: auto;
    width: 100%;
    max-width: 860px;
    transform: translateY(140%);
    opacity: 0;
    transition: transform .55s cubic-bezier(.16,1,.3,1), opacity .4s ease;
    will-change: transform, opacity;
  }

  .tv-cookie.show .tv-cookie-inner {
    transform: translateY(0);
    opacity: 1;
  }

  .tv-cookie.hiding .tv-cookie-inner {
    transform: translateY(140%);
    opacity: 0;
  }

  /* ── Main Bar ── */
  .tv-cookie-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px 16px 24px;
    background: var(--ck-dark);
    border: 1.5px solid var(--ck-border);
    border-radius: var(--ck-radius);
    box-shadow:
      0 8px 40px rgba(0,0,0,.35),
      0 0 0 1px rgba(251,233,115,.06),
      inset 0 1px 0 rgba(255,255,255,.04);
  }

  .tv-cookie-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: tvCookieWiggle 2s ease-in-out 1s 2;
    /* 2 iterations only — wiggle, then stop */
  }

  @keyframes tvCookieWiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-12deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-4deg); }
    80% { transform: rotate(0deg); }
  }

  .tv-cookie-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ck-cream) !important;
    line-height: 1.45;
  }

  .tv-cookie-text a {
    display: inline;
    color: var(--ck-gold) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 12.5px;
    margin-left: 6px;
    transition: color .2s;
    white-space: nowrap;
  }

  .tv-cookie-text a:hover,
  .tv-cookie-text a:focus {
    color: var(--ck-gold-deep) !important;
    text-decoration: underline !important;
  }

  /* ── Buttons ── */
  .tv-cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .tv-cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    letter-spacing: .02em;
    position: relative;
  }

  .tv-cookie-accept {
    background: linear-gradient(135deg, var(--ck-gold), #f5d84a) !important;
    color: var(--ck-dark) !important;
    box-shadow: 0 4px 16px var(--ck-glow);
  }

  .tv-cookie-accept:hover {
    box-shadow: 0 8px 28px var(--ck-glow);
    color: var(--ck-dark) !important;
  }

  .tv-cookie-decline {
    background: rgba(255,255,255,.06) !important;
    color: var(--ck-muted) !important;
    border: 1.5px solid rgba(255,255,255,.08) !important;
  }

  .tv-cookie-decline:hover {
    background: rgba(255,255,255,.1) !important;
    color: var(--ck-cream) !important;
    border-color: rgba(255,255,255,.15) !important;
  }

  .tv-cookie-settings-btn {
    background: transparent !important;
    color: var(--ck-cream) !important;
    border: 1.5px solid rgba(255,255,255,.12) !important;
  }

  .tv-cookie-settings-btn:hover {
    background: rgba(255,255,255,.06) !important;
    border-color: var(--ck-gold) !important;
    color: var(--ck-gold) !important;
  }

  /* ── Settings Panel ── */
  .tv-cookie-panel {
    display: none;
    margin-top: 10px;
    padding: 28px 30px;
    background: var(--ck-dark);
    border: 1.5px solid var(--ck-border);
    border-radius: var(--ck-radius-panel);
    box-shadow:
      0 12px 50px rgba(0,0,0,.4),
      inset 0 1px 0 rgba(255,255,255,.04);
    animation: tvCookiePanelIn .35s cubic-bezier(.16,1,.3,1);
  }

  .tv-cookie-panel.open {
    display: block;
  }

  @keyframes tvCookiePanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .tv-cookie-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .tv-cookie-panel-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--ck-cream) !important;
    letter-spacing: -.01em;
  }

  .tv-cookie-panel-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    color: var(--ck-muted);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s;
  }

  .tv-cookie-panel-close:hover {
    background: rgba(255,255,255,.12);
    color: var(--ck-cream);
  }

  .tv-cookie-panel-desc {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--ck-muted);
    line-height: 1.55;
  }

  /* ── Categories ── */
  .tv-cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .tv-cookie-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
  }

  .tv-cookie-cat:hover {
    background: rgba(255,255,255,.05);
    border-color: rgba(251,233,115,.15);
  }

  .tv-cookie-cat-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .tv-cookie-cat-icon {
    font-size: 22px;
    flex-shrink: 0;
  }

  .tv-cookie-cat-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ck-cream) !important;
    margin-bottom: 2px;
  }

  .tv-cookie-cat-desc {
    display: block;
    font-size: 12px;
    color: var(--ck-muted) !important;
    line-height: 1.4;
  }

  /* ── Toggle ── */
  .tv-cookie-toggle {
    position: relative;
    flex-shrink: 0;
  }

  .tv-cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .tv-cookie-slider {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,.1);
    border-radius: 24px;
    position: relative;
    transition: background .3s;
    cursor: pointer;
  }

  .tv-cookie-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--ck-muted);
    border-radius: 50%;
    transition: left .3s cubic-bezier(.16,1,.3,1), background .3s;
  }

  .tv-cookie-toggle input:checked + .tv-cookie-slider {
    background: linear-gradient(135deg, var(--ck-gold), #f5d84a);
  }

  .tv-cookie-toggle input:checked + .tv-cookie-slider::after {
    left: 23px;
    background: var(--ck-dark);
  }

  .tv-cookie-toggle--locked .tv-cookie-slider {
    opacity: .5;
    cursor: not-allowed;
  }

  .tv-cookie-toggle--locked input:checked + .tv-cookie-slider {
    background: linear-gradient(135deg, var(--ck-gold), #f5d84a);
    opacity: .5;
  }

  /* ── Panel Footer ── */
  .tv-cookie-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .tv-cookie-policy-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ck-gold) !important;
    text-decoration: none !important;
    transition: color .2s;
  }

  .tv-cookie-policy-link:hover,
  .tv-cookie-policy-link:focus {
    color: var(--ck-gold-deep) !important;
    text-decoration: underline !important;
  }

  /* ═══ RESPONSIVE ═══ */
  @media (max-width: 768px) {
    .tv-cookie {
      padding: 0 10px 12px;
    }

    .tv-cookie-bar {
      flex-wrap: wrap;
      gap: 12px;
      padding: 16px 18px;
      border-radius: 24px;
    }

    .tv-cookie-icon {
      font-size: 24px;
    }

    .tv-cookie-text {
      flex: 1 1 calc(100% - 48px);
      font-size: 13px;
    }

    .tv-cookie-text a {
      display: block;
      margin-left: 0;
      margin-top: 4px;
    }

    .tv-cookie-actions {
      width: 100%;
      justify-content: stretch;
    }

    .tv-cookie-actions .tv-cookie-btn {
      flex: 1;
      padding: 10px 8px;
      font-size: 11px;
      letter-spacing: 0;
    }

    .tv-cookie-panel {
      padding: 22px 18px;
      border-radius: 22px;
    }

    .tv-cookie-cat {
      padding: 12px 14px;
    }

    .tv-cookie-cat-desc {
      display: none;
    }
  }

  @media (max-width: 420px) {
    .tv-cookie-actions {
      flex-wrap: wrap;
      gap: 6px;
    }

    .tv-cookie-actions .tv-cookie-btn {
      flex: 1 1 100%;
      padding: 12px 16px;
      font-size: 13px;
    }

    .tv-cookie-settings-btn {
      order: 3;
    }
  }
