.unibul-consent-root,
.unibul-consent-root * {
  box-sizing: border-box;
}

.unibul-consent-root {
  position: relative;
  z-index: 2147483647;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
}

.unibul-consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px);
}

.unibul-consent-banner[hidden],
.unibul-consent-modal-backdrop[hidden],
.unibul-consent-reopen[hidden] {
  display: none !important;
}

.unibul-consent-copy {
  max-width: 720px;
}

.unibul-consent-copy h2,
.unibul-consent-modal h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.unibul-consent-copy p,
.unibul-consent-policy-link {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.unibul-consent-root a {
  color: #1d4ed8;
  text-underline-offset: 3px;
}

.unibul-consent-actions,
.unibul-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.unibul-consent-button,
.unibul-consent-reopen,
.unibul-consent-close {
  min-height: 42px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.unibul-consent-button {
  padding: 10px 16px;
  border: 1px solid #2563eb;
}

.unibul-consent-button-primary {
  background: #2563eb;
  color: #ffffff;
}

.unibul-consent-button-secondary {
  background: #ffffff;
  color: #1d4ed8;
}

.unibul-consent-button:focus-visible,
.unibul-consent-reopen:focus-visible,
.unibul-consent-close:focus-visible,
.unibul-consent-option-clickable:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.unibul-consent-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.unibul-consent-modal {
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.unibul-consent-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.unibul-consent-close {
  width: 42px;
  padding: 0;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 26px;
  line-height: 1;
}

.unibul-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0;
  padding: 15px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
}

.unibul-consent-option strong,
.unibul-consent-option span {
  display: block;
}

.unibul-consent-option strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.unibul-consent-option span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.unibul-consent-option-clickable {
  cursor: pointer;
}

.unibul-consent-option input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: #2563eb;
}

.unibul-consent-always-on {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-weight: 700;
  white-space: nowrap;
}

.unibul-consent-policy-link {
  margin: 16px 0;
}

.unibul-consent-reopen {
  position: fixed;
  bottom: 14px;
  left: 14px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  font-size: 12px;
}

html.unibul-consent-modal-open,
html.unibul-consent-modal-open body {
  overflow: hidden;
}

@media (max-width: 760px) {
  .unibul-consent-banner {
    align-items: stretch;
    flex-direction: column;
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 16px;
  }

  .unibul-consent-actions,
  .unibul-consent-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .unibul-consent-button {
    width: 100%;
  }
}
