.inw-consent {
  --inw-consent-cream: #fcfaf2;
  --inw-consent-navy: #23398d;
  --inw-consent-orange: #e64011;
  color: var(--inw-consent-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.inw-consent *, .inw-consent *::before, .inw-consent *::after { box-sizing: border-box; }
.inw-consent [hidden] { display: none !important; }

.inw-consent__banner {
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid rgba(35, 57, 141, .2);
  border-radius: 20px;
  background: var(--inw-consent-cream);
  box-shadow: 0 12px 40px rgba(13, 26, 75, .2);
}

.inw-consent__copy { flex: 1 1 560px; }
.inw-consent h2 { margin: 0 0 7px; color: var(--inw-consent-navy); font-size: 20px; line-height: 1.25; }
.inw-consent p { margin: 0 0 7px; }
.inw-consent__policy { color: var(--inw-consent-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.inw-consent__actions { display: flex; flex: 0 1 420px; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.inw-consent button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--inw-consent-navy);
  border-radius: 10px;
  background: transparent;
  color: var(--inw-consent-navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.inw-consent button:hover { background: rgba(35, 57, 141, .08); }
.inw-consent button.inw-consent__primary { border-color: var(--inw-consent-orange); background: var(--inw-consent-orange); color: #fff; }
.inw-consent button.inw-consent__primary:hover { background: #c8330b; }
.inw-consent button:focus-visible, .inw-consent a:focus-visible, .inw-consent input:focus-visible,
[data-consent-open]:focus-visible { outline: 3px solid var(--inw-consent-orange); outline-offset: 3px; }

.inw-consent__dialog {
  position: fixed;
  z-index: 10001;
  width: min(560px, calc(100vw - 24px));
  max-height: min(90vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(35, 57, 141, .22);
  border-radius: 20px;
  background: var(--inw-consent-cream);
  color: var(--inw-consent-navy);
  font: inherit;
  box-shadow: 0 18px 60px rgba(13, 26, 75, .22);
}
.inw-consent__dialog::backdrop { background: rgba(10, 20, 55, .56); }
.inw-consent__dialog-inner { padding: 24px; }
.inw-consent__category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(35, 57, 141, .2); }
.inw-consent__category strong, .inw-consent__category span span { display: block; }
.inw-consent__category strong { font-size: 16px; }
.inw-consent__category span span { margin-top: 3px; }
.inw-consent__always { flex-shrink: 0; font-weight: 700; }
.inw-consent input[type="checkbox"] { width: 23px; height: 23px; flex-shrink: 0; accent-color: var(--inw-consent-orange); cursor: pointer; }
.inw-consent__dialog .inw-consent__policy { display: inline-block; margin-top: 16px; }
.inw-consent__dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 24px; }

.footer-consent-settings {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 761px) {
  .inw-consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inw-consent__actions button { width: 100%; }
  .inw-consent__actions button[data-consent-action="customize"] {
    grid-column: 1 / -1;
    border: 0;
    border-radius: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 760px) {
  .inw-consent__banner { display: block; max-height: min(75vh, 640px); overflow: auto; padding: 16px; }
  .inw-consent__actions { justify-content: stretch; margin-top: 16px; }
  .inw-consent__actions button { flex: 1 1 100%; }
  .inw-consent__dialog-inner { padding: 20px; }
  .inw-consent__dialog-actions button { flex: 1 1 100%; }
}

@media (max-width: 390px) {
  .inw-consent__banner { right: 8px; bottom: 8px; left: 8px; }
  .inw-consent__category { align-items: flex-start; }
  .inw-consent__always { max-width: 90px; text-align: right; }
}
