.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.cookie-box {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15,23,42,.22);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(16px);
}

.cookie-main {
  flex: 1;
  min-width: 0;
}

.cookie-main h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.cookie-main p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-actions,
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 0;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
}

.cookie-btn.primary {
  background: #2563eb;
  color: #fff;
}

.cookie-btn.secondary {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1000000;
}

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

.cookie-modal-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 30px 90px rgba(15,23,42,.28);
}

.cookie-modal-card h3 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid #eef2f7;
}

.cookie-row strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.cookie-row small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.cookie-row input {
  width: 22px;
  height: 22px;
  accent-color: #2563eb;
  flex: 0 0 auto;
}

.cookie-row.disabled {
  opacity: .7;
}

.cookie-modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-card {
    border-radius: 20px;
  }
}