.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: none;
    justify-content: center;
    pointer-events: none;
  }

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__box {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  color: #1f2937;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 22px 24px;
  pointer-events: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cookie-banner__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__content {
  flex: 1 1 auto;
}

.cookie-banner__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.cookie-banner__text a {
  color: #2563eb;
  text-decoration: none;
}

.cookie-banner__text a:hover {
  text-decoration: underline;
}

.cookie-banner__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  color: #374151;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  line-height: 1;
}

.cookie-banner__close:hover {
  background: #e5e7eb;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cookie-btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn--primary {
  background: #111827;
  color: #ffffff;
}

.cookie-btn--primary:hover {
  background: #000000;
  transform: translateY(-1px);
}

.cookie-btn--secondary {
  background: #f3f4f6;
  color: #111827;
}

.cookie-btn--secondary:hover {
  background: #e5e7eb;
}

.cookie-btn--outline {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.cookie-btn--outline:hover {
  background: #f9fafb;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__box {
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-banner__title {
    font-size: 18px;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}


.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
  }

  .cookie-modal.is-visible {
    display: block;
  }

  .cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
  }

  .cookie-modal__dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 60px auto;
    background: #ffffff;
    color: #111827;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 24px;
    z-index: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  }

  .cookie-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .cookie-modal__close:hover {
    background: #e5e7eb;
  }

  .cookie-modal__title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
  }

  .cookie-modal__text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
  }

  .cookie-modal__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-modal__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
  }

  .cookie-modal__option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .cookie-modal__option-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }

  .cookie-modal__option-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
  }

  .cookie-modal__option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #111827;
    flex: 0 0 auto;
  }

  .cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }

  .cookie-modal__btn {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .cookie-modal__btn--light {
    background: #f3f4f6;
    color: #111827;
  }

  .cookie-modal__btn--light:hover {
    background: #e5e7eb;
  }

  .cookie-modal__btn--dark {
    background: #111827;
    color: #ffffff;
  }

  .cookie-modal__btn--dark:hover {
    background: #000000;
  }

  @media (max-width: 640px) {
    .cookie-modal__dialog {
      width: calc(100% - 20px);
      margin: 20px auto;
      padding: 18px;
      border-radius: 16px;
    }

    .cookie-modal__title {
      font-size: 20px;
      padding-right: 40px;
    }

    .cookie-modal__option {
      align-items: flex-start;
    }

    .cookie-modal__actions {
      flex-direction: column;
    }

    .cookie-modal__btn {
      width: 100%;
    }
  }
