#cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 24px;
    opacity: 1;
    transition: opacity 0.35s ease;
  }

  #cookie-overlay.hiding {
    opacity: 0;
    pointer-events: none;
  }

  #cookie-banner {
    width: 100%;
    max-width: 860px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow:
      0 24px 64px rgba(0,0,0,0.22),
      0 0 0 1px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px 32px;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    animation: bannerIn 0.5s cubic-bezier(0.16,1,0.3,1) both;
  }
  @keyframes bannerIn {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
  }

  .cb-icon {
    width: 40px; height: 40px;
    background: #f0f6ff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .cb-icon svg { width: 22px; height: 22px; }

  .cb-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .cb-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0d1117;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .cb-text p {
    font-size: 13px;
    color: #57606a;
    line-height: 1.65;
  }
  .cb-text a {
    color: #185FA5;
    text-decoration: none;
    border-bottom: 1px solid rgba(24,95,165,0.3);
    transition: border-color 0.15s;
  }
  .cb-text a:hover { border-color: #185FA5; }

  .cb-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    grid-row: span 1;
  }

  .cb-btn {
    font-family: 'Golos Text', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
  .cb-btn-accept {
    background: #0F6E56;
    color: #ffffff;
  }
  .cb-btn-accept:hover {
    background: #0a5843;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,110,86,0.35);
  }
  .cb-btn-decline {
    background: #f6f8fa;
    color: #57606a;
    border: 1px solid #d0d7de;
  }
  .cb-btn-decline:hover {
    background: #eaeef2;
    color: #24292f;
  }

  .cb-law {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #8c959f;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.5;
  }

  @media (max-width: 580px) {
    #cookie-banner {
      grid-template-columns: 1fr;
      padding: 20px;
      gap: 16px;
    }
    .cb-actions {
      flex-direction: row;
      min-width: auto;
    }
    .cb-btn { flex: 1; }
  }