:root {
  --chillons-consent-red: #b51f2e;
  --chillons-consent-ink: #211d1d;
  --chillons-consent-border: #d8d2ce;
  --chillons-consent-paper: #fff;
}

.chillons-consent-banner,
.chillons-consent-modal,
.chillons-consent-reopen,
.chillons-compliance-links {
  box-sizing: border-box;
  color: var(--chillons-consent-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.chillons-consent-banner {
  align-items: center;
  background: var(--chillons-consent-paper);
  border-top: 4px solid var(--chillons-consent-red);
  bottom: 0;
  box-shadow: 0 -8px 28px rgb(0 0 0 / 24%);
  display: grid;
  gap: 16px 24px;
  grid-template-columns: minmax(260px, 1fr) auto;
  left: 0;
  max-height: min(92vh, 560px);
  overflow: auto;
  padding: 20px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  z-index: 2147483645;
}

.chillons-consent-banner[hidden],
.chillons-consent-overlay[hidden],
.chillons-consent-reopen[hidden] {
  display: none !important;
}

.chillons-consent-copy h2,
.chillons-consent-modal h2 {
  color: var(--chillons-consent-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: none;
}

.chillons-consent-copy p,
.chillons-consent-modal > p {
  font-size: 15px;
  margin: 0;
  max-width: 900px;
}

.chillons-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: flex-end;
}

.chillons-consent-actions button,
.chillons-consent-save,
.chillons-consent-reopen,
.chillons-compliance-links button {
  background: #fff;
  border: 2px solid var(--chillons-consent-red);
  border-radius: 3px;
  color: var(--chillons-consent-red);
  cursor: pointer;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  min-height: 44px;
  padding: 10px 16px;
}

.chillons-consent-actions button:hover,
.chillons-consent-actions button:focus-visible,
.chillons-consent-save:hover,
.chillons-consent-save:focus-visible,
.chillons-consent-reopen:hover,
.chillons-consent-reopen:focus-visible,
.chillons-compliance-links button:hover,
.chillons-compliance-links button:focus-visible {
  box-shadow: 0 0 0 3px rgb(181 31 46 / 22%);
  outline: none;
}

.chillons-consent-actions .chillons-consent-primary,
.chillons-consent-save.chillons-consent-primary {
  background: var(--chillons-consent-red);
  color: #fff;
}

.chillons-consent-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.chillons-consent-policy-links a,
.chillons-compliance-links a {
  color: #7a1621;
  font: 600 13px/1.4 Arial, Helvetica, sans-serif;
  text-decoration: underline;
}

.chillons-consent-overlay {
  align-items: center;
  background: rgb(0 0 0 / 58%);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  overflow: auto;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147483646;
}

.chillons-consent-modal {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 60px rgb(0 0 0 / 35%);
  max-height: calc(100vh - 36px);
  max-width: 720px;
  overflow: auto;
  padding: clamp(22px, 5vw, 42px);
  position: relative;
  width: 100%;
}

.chillons-consent-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: 32px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 8px;
  width: 44px;
}

.chillons-consent-form {
  margin-top: 22px;
}

.chillons-consent-category {
  align-items: center;
  border-top: 1px solid var(--chillons-consent-border);
  cursor: pointer;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0;
  padding: 16px 0;
}

.chillons-consent-category-copy {
  display: grid;
  gap: 3px;
}

.chillons-consent-category-copy strong {
  color: var(--chillons-consent-ink);
  font-size: 15px;
}

.chillons-consent-category-copy span {
  color: #575151;
  font-size: 13px;
}

.chillons-consent-category input {
  accent-color: var(--chillons-consent-red);
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.chillons-consent-form .chillons-consent-policy-links {
  margin: 18px 0;
}

.chillons-consent-save {
  width: 100%;
}

.chillons-consent-reopen {
  bottom: 14px;
  box-shadow: 0 3px 14px rgb(0 0 0 / 22%);
  left: 14px;
  min-height: 40px;
  padding: 8px 13px;
  position: fixed;
  z-index: 2147483644;
}

.chillons-compliance-links {
  align-items: center;
  background: #f3f0ed;
  border-top: 1px solid var(--chillons-consent-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  padding: 16px 72px;
}

.chillons-compliance-links button {
  min-height: 36px;
  padding: 6px 10px;
}

html.chillons-consent-open {
  overflow: hidden;
}

iframe[data-chillons-consent] {
  background: #eee;
}

@media (max-width: 850px) {
  .chillons-consent-banner {
    display: block;
  }

  .chillons-consent-policy-links,
  .chillons-consent-actions {
    margin-top: 14px;
  }

  .chillons-consent-actions {
    justify-content: stretch;
  }

  .chillons-consent-actions button {
    flex: 1 1 140px;
  }

  .chillons-compliance-links {
    padding: 16px 18px 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chillons-consent-banner,
  .chillons-consent-modal,
  .chillons-consent-overlay {
    scroll-behavior: auto;
  }
}
