/* Peleman cookie consent */
.pa-cookie {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  font-family: Montserrat, "Open Sans", sans-serif;
}

.pa-cookie.is-open {
  display: flex;
}

.pa-cookie__card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 0;
  overflow: hidden;
  animation: paCookieIn 0.3s ease;
}

@keyframes paCookieIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pa-cookie__accent {
  height: 5px;
  background: linear-gradient(90deg, #4345e7, #272df6);
}

.pa-cookie__body {
  padding: 26px 28px 22px;
}

.pa-cookie__title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #141824;
  line-height: 1.25;
}

.pa-cookie__text {
  margin: 0 0 20px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #4b5568;
  font-family: "Open Sans", sans-serif;
}

.pa-cookie__text a {
  color: #4345e7;
  font-weight: 600;
  text-decoration: underline;
}

.u-form-send-error {
  white-space: normal !important;
  line-height: 1.45 !important;
}

.pa-cookie__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pa-cookie__actions--main .pa-cookie__btn--primary {
  grid-column: 1 / -1;
}

.pa-cookie__btn {
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.pa-cookie__btn--ghost {
  background: #fff;
  border-color: #d5dae6;
  color: #374151;
}

.pa-cookie__btn--ghost:hover {
  border-color: #4345e7;
  color: #4345e7;
}

.pa-cookie__btn--soft {
  background: #eef0ff;
  color: #4345e7;
  border-color: #eef0ff;
}

.pa-cookie__btn--soft:hover {
  background: #e0e3ff;
}

.pa-cookie__btn--primary {
  background: #4345e7;
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 69, 231, 0.3);
}

.pa-cookie__btn--primary:hover {
  background: #3537c4;
  transform: translateY(-1px);
}

.pa-cookie__panel {
  display: none;
  margin: 0 0 18px;
  border: 1px solid #e8ebf3;
  border-radius: 14px;
  overflow: hidden;
}

.pa-cookie__panel.is-open {
  display: block;
}

.pa-cookie__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f7;
  background: #fff;
}

.pa-cookie__row:last-child {
  border-bottom: none;
}

.pa-cookie__row-info {
  min-width: 0;
}

.pa-cookie__row-title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #141824;
}

.pa-cookie__row-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b7280;
  font-family: "Open Sans", sans-serif;
}

.pa-cookie__switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  margin-top: 2px;
}

.pa-cookie__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pa-cookie__switch span {
  position: absolute;
  inset: 0;
  background: #cfd5e3;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.pa-cookie__switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.pa-cookie__switch input:checked + span {
  background: #4345e7;
}

.pa-cookie__switch input:checked + span::after {
  transform: translateX(20px);
}

.pa-cookie__switch input:disabled + span {
  background: #4345e7;
  opacity: 0.7;
  cursor: not-allowed;
}

.pa-cookie__actions--settings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pa-cookie__actions--settings .pa-cookie__btn {
  flex: 1 1 140px;
}

.pa-cookie__view[hidden] {
  display: none !important;
}

/* Verberg oude NicePage cookie-balk */
.u-cookies-consent {
  display: none !important;
}

@media (max-width: 520px) {
  .pa-cookie__body {
    padding: 22px 18px 18px;
  }
  .pa-cookie__actions {
    grid-template-columns: 1fr;
  }
}
