    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
    }

    /* Overlay */
    .cookie-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      z-index: 9998;
    }

    /* Banner */
    .cookie-banner {
      position: fixed;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%);
      width: calc(100% - 40px);
      max-width: 900px;
      background: #ffffff;
      color: #1f2937;
      border-radius: 14px;
      padding: 24px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20);
      z-index: 9999;
    }

    .cookie-banner h2 {
      margin: 0 0 10px;
      font-size: 21px;
      color: #111827;
    }

    .cookie-banner p {
      margin: 0 0 14px;
      font-size: 14px;
      line-height: 1.6;
    }

    .cookie-banner a {
      color: #2563eb;
      text-decoration: underline;
    }

    /* Pulsanti */
    .cookie-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 18px;
    }

    .cookie-btn {
      border: 0;
      border-radius: 8px;
      padding: 11px 18px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.2s;
    }

    .cookie-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
    }

    .cookie-accept {
      background: #2563eb;
      color: white;
    }

    .cookie-reject {
      background: #e5e7eb;
      color: #111827;
    }

    .cookie-settings {
      background: transparent;
      color: #2563eb;
      border: 1px solid #2563eb;
    }

    /* Pannello preferenze */
    .cookie-preferences {
      display: none;
      margin-top: 20px;
      border-top: 1px solid #e5e7eb;
      padding-top: 18px;
    }

    .cookie-preferences.active {
      display: block;
    }

    .cookie-category {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 13px 0;
      border-bottom: 1px solid #f0f0f0;
    }

    .cookie-category:last-child {
      border-bottom: 0;
    }

    .cookie-category strong {
      display: block;
      margin-bottom: 4px;
      font-size: 14px;
    }

    .cookie-category small {
      display: block;
      color: #6b7280;
      line-height: 1.4;
      font-size: 12px;
    }

    /* Switch */
    .switch {
      position: relative;
      width: 46px;
      min-width: 46px;
      height: 24px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      inset: 0;
      background: #d1d5db;
      border-radius: 30px;
      cursor: pointer;
      transition: 0.2s;
    }

    .slider:before {
      content: "";
      position: absolute;
      width: 18px;
      height: 18px;
      left: 3px;
      top: 3px;
      background: white;
      border-radius: 50%;
      transition: 0.2s;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .switch input:checked + .slider {
      background: #2563eb;
    }

    .switch input:checked + .slider:before {
      transform: translateX(22px);
    }

    .switch input:disabled + .slider {
      cursor: not-allowed;
      opacity: 0.7;
    }

    /* Mobile */
    @media (max-width: 600px) {
      .cookie-banner {
        bottom: 0;
        width: 100%;
        border-radius: 14px 14px 0 0;
        padding: 20px;
      }

      .cookie-actions {
        flex-direction: column;
      }

      .cookie-btn {
        width: 100%;
      }

      .cookie-category {
        align-items: flex-start;
      }
    }