/* ConsentKit banner, modal, reopen button — all styling via CSS variables */
.ck-root {
  --ck-primary: #541426;
  --ck-accent: #E0C196;
  --ck-bg: #ffffff;
  --ck-title-color: #111111;
  --ck-title-size: 16px;
  --ck-title-weight: 800;
  --ck-text-color: #555555;
  --ck-text-size: 14px;
  --ck-link-color: #541426;
  --ck-border-color: #541426;
  --ck-border-width: 2px;
  --ck-radius: 0px;
  --ck-maxw: 980px;
  --ck-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  --ck-btn-radius: 0px;
  --ck-btn-size: 14px;
  --ck-accept-bg: #E0C196;
  --ck-accept-color: #541426;
  --ck-accept-hover-bg: #000000;
  --ck-accept-hover-color: #ffffff;
  --ck-reject-bg: #ffffff;
  --ck-reject-color: #541426;
  --ck-reject-border: #541426;
  --ck-reject-hover-bg: #541426;
  --ck-reject-hover-color: #E0C196;
  --ck-modal-bg: #ffffff;
  --ck-modal-title: #111111;
  --ck-modal-radius: 0px;
  --ck-reopen-bg: #541426;
  --ck-reopen-color: #E0C196;
  font-family: 'Montserrat', Arial, sans-serif;
}
.ck-banner {
  position: fixed;
  z-index: 99990;
  background: var(--ck-bg);
  color: var(--ck-text-color);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--ck-shadow);
  border: var(--ck-border-width) solid var(--ck-border-color);
  border-radius: var(--ck-radius);
}
.ck-pos-bottom_card {
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: var(--ck-maxw);
  margin: 0 auto;
  padding: 20px 24px;
}
.ck-pos-bottom_bar {
  left: 0;
  right: 0;
  bottom: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  padding: 16px 24px;
}
.ck-pos-top_bar {
  left: 0;
  right: 0;
  top: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  padding: 16px 24px;
}
.ck-banner[hidden] { display: none !important; }
@keyframes ckSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes ckFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ck-banner.ck-anim-slide:not([hidden]) { animation: ckSlideUp 0.45s ease both; }
.ck-banner.ck-anim-fade:not([hidden]) { animation: ckFadeIn 0.45s ease both; }
.ck-banner-text { flex: 1; min-width: 0; }
.ck-banner-title {
  display: block;
  font-size: var(--ck-title-size);
  font-weight: var(--ck-title-weight);
  color: var(--ck-title-color);
  margin-bottom: 6px;
}
.ck-banner-text p {
  margin: 0;
  font-size: var(--ck-text-size);
  line-height: 1.65;
  color: var(--ck-text-color);
}
.ck-banner-text a { color: var(--ck-link-color); font-weight: 700; }
.ck-sep { color: #999999; }
.ck-banner-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.ck-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: var(--ck-btn-size);
  letter-spacing: 0.4px;
  padding: 12px 22px;
  cursor: pointer;
  border-radius: var(--ck-btn-radius);
  white-space: nowrap;
}
.ck-btn-primary {
  background: var(--ck-accept-bg);
  color: var(--ck-accept-color);
  border: none;
  box-shadow: 4px 4px 0 #000000;
}
.ck-btn-primary:hover { background: var(--ck-accept-hover-bg); color: var(--ck-accept-hover-color); box-shadow: none; }
.ck-btn-ghost {
  background: var(--ck-reject-bg);
  color: var(--ck-reject-color);
  border: 2px solid var(--ck-reject-border);
}
.ck-btn-ghost:hover { background: var(--ck-reject-hover-bg); color: var(--ck-reject-hover-color); }

/* Preferences modal */
.ck-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ck-modal-wrap[hidden] { display: none !important; }
.ck-modal {
  background: var(--ck-modal-bg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  border: 2px solid var(--ck-border-color);
  border-top: 5px solid var(--ck-accent);
  border-radius: var(--ck-modal-radius);
}
.ck-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: var(--ck-modal-bg);
}
.ck-modal-title { font-size: 17px; font-weight: 800; color: var(--ck-modal-title); }
.ck-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #999999;
  padding: 0 4px;
}
.ck-modal-close:hover { color: #111111; }
.ck-modal-cats { padding: 8px 22px; }
.ck-cat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ck-cat:last-child { border-bottom: none; }
.ck-cat-info { flex: 1; }
.ck-cat-label { font-size: 14.5px; font-weight: 700; color: var(--ck-modal-title); display: block; margin-bottom: 4px; }
.ck-cat-desc { font-size: 13px; color: #777777; line-height: 1.6; margin: 0; }
.ck-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ck-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.ck-toggle input:disabled { cursor: not-allowed; }
.ck-track {
  position: absolute;
  inset: 0;
  background: #cccccc;
  border-radius: 999px;
}
.ck-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.ck-toggle input:checked + .ck-track { background: var(--ck-primary); }
.ck-toggle input:checked + .ck-track::after { left: 23px; }
.ck-locked-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ck-primary);
}
.ck-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 22px;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
  background: var(--ck-modal-bg);
}

/* Floating reopen button — shows the ConsentKit logo */
.ck-reopen {
  position: fixed;
  bottom: 18px;
  z-index: 99989;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}
.ck-reopen svg { display: block; width: 48px; height: 48px; }
.ck-reopen-left { left: 18px; }
.ck-reopen-right { right: 18px; }
.ck-reopen[hidden] { display: none !important; }
.ck-reopen:hover { transform: scale(1.08); }

/* Cookie policy table shortcode */
.ck-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.ck-table th, .ck-table td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid #e3e3e3;
}
.ck-table thead th {
  background: var(--ck-primary, #541426);
  color: #ffffff;
  font-weight: 700;
}
.ck-table tbody tr:nth-child(even) { background: #fafafa; }

@media (max-width: 640px) {
  .ck-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .ck-pos-bottom_card { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .ck-banner-btns { justify-content: center; }
  .ck-btn { flex: 1; padding: 12px 10px; }
  .ck-reopen-left { left: 12px; }
  .ck-reopen-right { right: 12px; }
  .ck-reopen { bottom: 12px; }
}
