.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.hidden {
  display: none;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.cookie-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
}

.cookie-modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #1F2937;
  margin-bottom: 12px;
}

.cookie-modal-text {
  color: #4B5563;
  margin-bottom: 24px;
  line-height: 1.6;
}

.cookie-categories {
  margin-bottom: 24px;
}

.cookie-category {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  background: #f8fafc;
}

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

.cookie-category-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #1F2937;
  cursor: pointer;
}

.cookie-category-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #3B82F6;
}

.cookie-category-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category-status {
  font-size: 12px;
  color: #64748b;
  font-weight: normal;
}

.cookie-category-description {
  color: #4B5563;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cookie-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cookie-btn-primary {
  background: #3B82F6;
  color: white;
}

.cookie-btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookie-btn-secondary {
  background: #0f172a;
  color: #f1f5f9;
}

.cookie-btn-secondary:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.cookie-btn-tertiary {
  background: #f8fafc;
  color: #1F2937;
  border: 1px solid #e2e8f0;
}

.cookie-btn-tertiary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.cookie-modal-footer {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.cookie-policy-link {
  color: #3B82F6;
  text-decoration: none;
  font-size: 14px;
}

.cookie-policy-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-modal-content {
    padding: 20px;
    max-height: 95vh;
  }
  .cookie-modal-title { font-size: 20px; }
  .cookie-modal-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; }
  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 40rem;
  margin-inline: auto;
  display: none;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgb(18 26 12 / 0.25);
  padding: 1.5rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__title { font-size: 1.125rem; font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; }
.cookie-banner__text { color: #6b7280; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-panel {
  position: fixed; inset: 0; z-index: 210; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background-color: rgb(18 26 12 / 0.55);
}
.cookie-panel.is-visible { display: flex; }
.cookie-panel__dialog {
  width: min(100%, 32rem); max-height: min(90vh, 40rem); overflow: auto;
  background-color: #ffffff; border-radius: 1rem; border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgb(18 26 12 / 0.25); padding: 1.5rem;
}
.cookie-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cookie-panel__header h2 { font-size: 1.25rem; font-weight: 700; color: #1f2937; }
.cookie-panel__close {
  width: 44px; height: 44px; border: 1px solid #e5e7eb; border-radius: 0.5rem;
  background-color: #ffffff; color: #1f2937; flex-shrink: 0;
}
.cookie-panel__close:hover { background-color: #e5ecfd; border-color: #2563EB; }
.cookie-panel__text { color: #6b7280; font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.cookie-panel__options { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.cookie-option {
  display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; padding: 1rem;
  border: 1px solid #e5e7eb; border-radius: 0.75rem; background-color: #e5ecfd;
}
.cookie-option input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: #2563EB; }
.cookie-option__title { font-weight: 700; color: #1f2937; }
.cookie-option__desc { margin: 0; color: #6b7280; font-size: 0.875rem; }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-toggle {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 190;
  min-width: 44px; min-height: 44px; padding: 0.7rem 0.95rem; border-radius: 999px;
  border: 1px solid #e5e7eb; background-color: #2563EB; color: #ffffff;
  box-shadow: 0 10px 15px -3px rgb(18 26 12 / 0.25); display: inline-flex; align-items: center;
  gap: 0.4rem; font-size: 0.875rem; font-weight: 600;
}
.cookie-toggle:hover { background-color: #1f54c8; }
.cookie-btn {
  min-height: 44px; padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cookie-btn--primary { background-color: #2563EB; color: #ffffff; border: 0; }
.cookie-btn--primary:hover { background-color: #1f54c8; }
.cookie-btn--secondary { background-color: #e5ecfd; color: #2563EB; border: 1px solid #e5e7eb; }
.cookie-btn--secondary:hover { border-color: #2563EB; }
.cookie-btn--ghost { background-color: #ffffff; color: #6b7280; border: 1px solid #e5e7eb; }
.cookie-btn--ghost:hover { background-color: #e5ecfd; color: #2563EB; }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 5.5rem; margin-inline: 0; }
  .cookie-toggle { right: 1.5rem; bottom: 1.5rem; }
}
