:root {
  --diba-red: #A6192E;
  --diba-red-dark: #7A0F20;
  --diba-gray: #3a3a3a;
}

/* Banner */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1050;
  background: #fff;
  border-top: 3px solid var(--diba-red);
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-banner-text {
  flex: 1 1 420px;
  margin: 0;
  color: var(--diba-gray);
  font-size: .95rem;
  line-height: 1.4;
}
.cookie-banner-text a,
.cookie-modal a { color: var(--diba-red); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.cookie-btn {
  border: 0;
  padding: .625rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  font-size: .95rem;
  transition: background .15s ease, color .15s ease;
}
.cookie-btn-primary {
  background: var(--diba-red);
  color: #fff;
}
.cookie-btn-primary:hover { background: var(--diba-red-dark); }
.cookie-btn-link {
  background: transparent;
  color: var(--diba-red);
  text-decoration: underline;
  padding-inline: .5rem;
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.cookie-modal-dialog {
  position: relative;
  background: #fff;
  max-width: 720px;
  max-height: 85vh;
  margin: 5vh auto;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}
.cookie-modal-title {
  margin: 0;
  color: var(--diba-red);
  font-size: 1.4rem;
}
.cookie-modal-close {
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--diba-gray);
}
.cookie-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  color: var(--diba-gray);
}
.cookie-modal-footer {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

/* Categories */
.cookie-category { padding: 1rem 0; border-top: 1px solid #eee; }
.cookie-category:first-of-type { border-top: 0; }
.cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .5rem;
}
.cookie-category h3 {
  margin: 0;
  color: var(--diba-red);
  font-size: 1.05rem;
}
.cookie-always-on {
  color: var(--diba-red);
  font-size: .85rem;
  font-weight: 500;
}
.cookie-category p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #ccc;
  border-radius: 22px;
  transition: background .2s;
}
.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--diba-red); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }

body.cookie-modal-open { overflow: hidden; }
