.tomich-consent {
  position: fixed;
  z-index: 100000;
  inset: auto 0 0 0;
  pointer-events: none;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tomich-consent *,
.tomich-consent *::before,
.tomich-consent *::after {
  box-sizing: border-box;
}

.tomich-consent__bar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 18px;
  color: #071d49;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(7, 29, 73, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(7, 29, 73, 0.22);
}

.tomich-consent__copy {
  min-width: 0;
}

.tomich-consent__copy strong,
.tomich-consent__modal h2 {
  display: block;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: #071d49;
}

.tomich-consent__copy p,
.tomich-consent__modal p {
  margin: 7px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.tomich-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tomich-consent__button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.tomich-consent__button:hover {
  transform: translateY(-1px);
}

.tomich-consent__button:focus-visible,
.tomich-consent__icon:focus-visible,
.tomich-consent__row input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.tomich-consent__button--primary {
  color: #fff;
  background: #d52234;
  border-color: #d52234;
}

.tomich-consent__button--primary:hover {
  background: #b91c2d;
  border-color: #b91c2d;
}

.tomich-consent__button--ghost,
.tomich-consent__button--muted {
  color: #071d49;
  background: #fff;
  border-color: rgba(7, 29, 73, 0.16);
}

.tomich-consent__button--muted {
  background: #f1f5f9;
}

.tomich-consent__settings {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.tomich-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 73, 0.52);
  backdrop-filter: blur(3px);
}

.tomich-consent__modal {
  pointer-events: auto;
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  color: #071d49;
  background: #fff;
  border: 1px solid rgba(7, 29, 73, 0.12);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(2, 8, 23, 0.35);
}

.tomich-consent__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #071d49;
  background: #f1f5f9;
  border: 1px solid rgba(7, 29, 73, 0.1);
  border-radius: 999px;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tomich-consent__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(7, 29, 73, 0.1);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.tomich-consent__row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #d52234;
}

.tomich-consent__row strong,
.tomich-consent__row small {
  display: block;
}

.tomich-consent__row strong {
  color: #071d49;
  font-size: 14px;
  line-height: 1.3;
}

.tomich-consent__row small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.tomich-consent__modal .tomich-consent__actions {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .tomich-consent__bar {
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 16px;
  }

  .tomich-consent__actions,
  .tomich-consent__modal .tomich-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tomich-consent__button {
    width: 100%;
  }

  .tomich-consent__settings {
    align-items: end;
    padding: 10px;
  }

  .tomich-consent__modal {
    padding: 22px 16px 16px;
    border-radius: 18px;
  }
}
