.sentioo-cookie,
.sentioo-cookie * {
  box-sizing: border-box;
}

.sentioo-cookie[hidden],
.sentioo-cookie__modal[hidden] {
  display: none !important;
}

.sentioo-cookie {
  --cookie-brand: var(--brand, #0069b2);
  --cookie-brand-contrast: var(--brand-contrast, #fff);
  --cookie-brand-readable: var(--brand-readable, #0069b2);
  --cookie-brand-border: var(--brand-border, #0069b2);
  --cookie-surface: var(--page-bg, #fff);
  --cookie-ink: var(--page-text-readable, var(--ink, #1c1c1c));
  --cookie-copy: var(--page-text-readable, #4b5563);
  --cookie-soft: color-mix(in srgb, var(--cookie-brand) 10%, var(--cookie-surface));
  --cookie-line: color-mix(in srgb, var(--cookie-brand-border) 24%, var(--cookie-surface));
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  font-family: var(--site-font-family, "Poppins"), sans-serif;
  color: var(--cookie-ink);
  pointer-events: none;
}

.sentioo-cookie__panel {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  background: var(--cookie-surface);
  border: 1px solid var(--cookie-line);
  border-radius: var(--radius, 8px);
  box-shadow: 0 18px 60px color-mix(in srgb, var(--cookie-brand) 18%, transparent);
  pointer-events: auto;
}

.sentioo-cookie__content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.sentioo-cookie__badge {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: var(--button-radius, 8px);
  color: var(--cookie-brand-readable);
  background: var(--cookie-soft);
}

.sentioo-cookie__badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sentioo-cookie__title,
.sentioo-cookie__dialog-title {
  margin: 0;
  color: var(--cookie-ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.sentioo-cookie__text {
  max-width: 690px;
  margin: 6px 0 0;
  color: var(--cookie-copy);
  font-size: 14px;
  line-height: 1.55;
}

.sentioo-cookie__text a {
  color: var(--cookie-brand-readable);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sentioo-cookie__actions,
.sentioo-cookie__dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sentioo-cookie__btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--button-radius, 8px);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sentioo-cookie__btn:hover {
  transform: translateY(-1px);
  filter: brightness(.96);
}

.sentioo-cookie__btn--primary {
  color: var(--cookie-brand-contrast);
  background: var(--cookie-brand);
  border-color: var(--cookie-brand-border);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cookie-brand) 24%, transparent);
}

.sentioo-cookie__btn--secondary {
  color: var(--cookie-brand-readable);
  background: var(--cookie-soft);
  border-color: var(--cookie-line);
}

.sentioo-cookie__btn--ghost {
  color: var(--cookie-brand-readable);
  background: var(--cookie-surface);
  border-color: var(--cookie-line);
}

.sentioo-cookie__btn:focus-visible,
.sentioo-cookie__close:focus-visible,
.sentioo-cookie__group input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cookie-brand-border) 38%, transparent);
  outline-offset: 2px;
}

.sentioo-cookie__modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, var(--cookie-ink) 42%, transparent);
  pointer-events: auto;
}

.sentioo-cookie__dialog {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  background: var(--cookie-surface);
  border: 1px solid var(--cookie-line);
  border-radius: var(--radius, 8px);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--cookie-ink) 28%, transparent);
}

.sentioo-cookie__dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sentioo-cookie__eyebrow {
  margin: 0 0 4px;
  color: var(--cookie-brand-readable);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sentioo-cookie__close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cookie-line);
  border-radius: var(--button-radius, 8px);
  color: var(--cookie-brand-readable);
  background: var(--cookie-soft);
  cursor: pointer;
}

.sentioo-cookie__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.sentioo-cookie__groups {
  display: grid;
  gap: 12px;
}

.sentioo-cookie__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--cookie-line);
  border-radius: var(--button-radius, 8px);
  background: var(--cookie-surface);
}

.sentioo-cookie__group--locked {
  background: var(--cookie-soft);
}

.sentioo-cookie__group strong,
.sentioo-cookie__group small {
  display: block;
}

.sentioo-cookie__group strong {
  color: var(--cookie-ink);
  font-size: 15px;
  line-height: 1.3;
}

.sentioo-cookie__group small {
  margin-top: 4px;
  color: var(--cookie-copy);
  font-size: 13px;
  line-height: 1.45;
}

body.site-shell .sentioo-cookie__group input[type="checkbox"],
.sentioo-cookie__group input[type="checkbox"] {
  width: 46px;
  height: 26px;
  min-height: 26px;
  flex: 0 0 46px;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cookie-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cookie-ink) 16%, var(--cookie-surface));
  background-image: none;
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease;
}

body.site-shell .sentioo-cookie__group input[type="checkbox"]::before,
.sentioo-cookie__group input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--cookie-surface);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cookie-ink) 18%, transparent);
  transition: transform 0.18s ease;
}

body.site-shell .sentioo-cookie__group input[type="checkbox"]:checked,
.sentioo-cookie__group input[type="checkbox"]:checked {
  border: 1px solid var(--cookie-brand-border);
  background: var(--cookie-brand);
  background-image: none;
}

body.site-shell .sentioo-cookie__group input[type="checkbox"]:checked::before,
.sentioo-cookie__group input[type="checkbox"]:checked::before {
  background: var(--cookie-brand-contrast);
  transform: translateX(20px);
}

body.site-shell .sentioo-cookie__group input[type="checkbox"]:disabled,
.sentioo-cookie__group input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.sentioo-cookie__dialog-actions {
  margin-top: 18px;
}

@media (max-width: 820px) {
  .sentioo-cookie__panel {
    align-items: stretch;
    flex-direction: column;
    width: calc(100% - 24px);
    margin-bottom: 12px;
    padding: 16px;
  }

  .sentioo-cookie__actions,
  .sentioo-cookie__dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sentioo-cookie__btn {
    width: 100%;
  }

  .sentioo-cookie__content {
    gap: 12px;
  }
}
