.gaw26-cc,
.gaw26-cc-modal {
  --gaw26-cc-surface: var(--color-surface, #ffffff);
  --gaw26-cc-surface-hover: var(--color-surface-hover, #f4f4f5);
  --gaw26-cc-border: var(--color-border, #e4e4e7);
  --gaw26-cc-foreground: var(--color-foreground, #18181b);
  --gaw26-cc-muted: var(--color-muted, #71717a);
  --gaw26-cc-primary: var(--color-primary, #1d4ed8);
  --gaw26-cc-primary-hover: var(--color-primary-hover, #1e40af);
  --gaw26-cc-primary-foreground: var(--color-primary-foreground, #ffffff);
  font-family: inherit;
}

[data-gaw26-cc-hidden] {
  display: none !important;
}

.gaw26-cc {
  position: fixed;
  z-index: 99990;
  bottom: 10px;
  left: 50%;
  width: min(480px, calc(100vw - 20px));
  color: var(--gaw26-cc-foreground);
  transform: translateX(-50%);
}

.gaw26-cc--compact {
  width: min(420px, calc(100vw - 20px));
}

.gaw26-cc--normal {
  width: min(480px, calc(100vw - 20px));
}

.gaw26-cc--wide {
  width: min(560px, calc(100vw - 20px));
}

.gaw26-cc__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--gaw26-cc-border);
  border-radius: var(--gaw26-cc-radius, 12px);
  background: var(--gaw26-cc-surface);
}

.gaw26-cc__heading {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--gaw26-cc-foreground);
}

.gaw26-cc__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gaw26-cc__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--gaw26-cc-foreground);
}

.gaw26-cc__icon svg {
  width: 100%;
  height: 100%;
}

.gaw26-cc__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.gaw26-cc__links a,
.gaw26-cc-preferences-link {
  color: var(--gaw26-cc-primary);
  text-decoration: none;
}

.gaw26-cc-preferences-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.gaw26-cc__actions {
  display: grid;
  width: 100%;
  gap: 8px;
  justify-self: stretch;
}

.gaw26-cc__button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: calc(var(--gaw26-cc-radius, 12px) * 0.55);
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.gaw26-cc__secondary-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}

.gaw26-cc__secondary-actions .gaw26-cc__button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.gaw26-cc__button--primary {
  border-color: var(--gaw26-cc-primary);
  background: var(--gaw26-cc-primary);
  color: var(--gaw26-cc-primary-foreground);
}

.gaw26-cc__button--primary:hover {
  background: var(--gaw26-cc-primary-hover);
}

.gaw26-cc--button-outline .gaw26-cc__button--primary {
  background: transparent;
  color: var(--gaw26-cc-primary);
}

.gaw26-cc__button--secondary {
  border-color: var(--gaw26-cc-border);
  background: var(--gaw26-cc-surface);
  color: var(--gaw26-cc-foreground);
}

.gaw26-cc__button--secondary:hover,
.gaw26-cc__button--text:hover {
  background: var(--gaw26-cc-surface-hover);
}

.gaw26-cc__button--text {
  border-color: transparent;
  background: transparent;
  color: var(--gaw26-cc-foreground);
}

.gaw26-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  color: var(--gaw26-cc-foreground);
}

.gaw26-cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.gaw26-cc-modal__dialog {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  overflow: auto;
  border: 1px solid var(--gaw26-cc-border);
  border-radius: var(--gaw26-cc-radius, 12px);
  background: var(--gaw26-cc-surface);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.gaw26-cc-modal__header,
.gaw26-cc-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.gaw26-cc-modal__header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.gaw26-cc-modal__close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--gaw26-cc-border);
  border-radius: 999px;
  background: var(--gaw26-cc-surface);
  color: var(--gaw26-cc-foreground);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.gaw26-cc-modal__body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.gaw26-cc-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gaw26-cc-border);
  border-radius: calc(var(--gaw26-cc-radius, 12px) * 0.75);
}

.gaw26-cc-category__text {
  display: grid;
  gap: 4px;
}

.gaw26-cc-category__label {
  font-weight: 700;
}

.gaw26-cc-category__description {
  color: var(--gaw26-cc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.gaw26-cc-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.gaw26-cc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gaw26-cc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gaw26-cc-border);
}

.gaw26-cc-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.gaw26-cc-switch input:checked + span {
  background: var(--gaw26-cc-primary);
}

.gaw26-cc-switch input:checked + span::after {
  transform: translateX(20px);
}

body.gaw26-cc-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .gaw26-cc-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gaw26-cc__button {
    width: 100%;
  }

  .gaw26-cc__heading {
    font-size: 17px;
  }

  .gaw26-cc__icon {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 640px) {
  .gaw26-cc {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
  }

  .gaw26-cc--compact {
    width: min(420px, calc(100vw - 32px));
  }

  .gaw26-cc--normal {
    width: min(480px, calc(100vw - 32px));
  }

  .gaw26-cc--wide {
    width: min(560px, calc(100vw - 32px));
  }

  .gaw26-cc__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    justify-self: stretch;
  }

  .gaw26-cc__actions > .gaw26-cc__button,
  .gaw26-cc__secondary-actions .gaw26-cc__button {
    width: 100%;
    min-height: 36px;
    min-width: 0;
    padding: 7px 12px;
    font-size: 13px;
  }

  .gaw26-cc__secondary-actions {
    display: contents;
  }
}
