:root {
  --fcc-background: var(--card-bg, #ffffff);
  --fcc-text-color: var(--text-color, #1f272e);
  --fcc-muted-text: var(--text-muted, #6b7280);
  --fcc-border-color: var(--border-color, #d1d8dd);
  --fcc-primary-button-bg: var(--primary, #171717);
  --fcc-primary-button-text: #ffffff;
  --fcc-secondary-button-bg: transparent;
  --fcc-secondary-button-text: var(--fcc-text-color);
  --fcc-border-radius: var(--border-radius, 8px);
  --fcc-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --fcc-font-family: var(--font-stack, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.fcc-root,
.fcc-modal-overlay {
  font-family: var(--fcc-font-family);
  color: var(--fcc-text-color);
}

.fcc-root {
  position: fixed;
  z-index: 9998;
  left: 16px;
  right: 16px;
  pointer-events: none;
}

.fcc-position-bottom { bottom: 16px; }
.fcc-position-top { top: 16px; }

.fcc-banner {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--fcc-background);
  color: var(--fcc-text-color);
  border: 1px solid var(--fcc-border-color);
  border-radius: var(--fcc-border-radius);
  box-shadow: var(--fcc-shadow);
  padding: 16px;
}

.fcc-layout-full .fcc-banner {
  max-width: none;
}

.fcc-content { min-width: 0; }
.fcc-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}
.fcc-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fcc-muted-text);
}
.fcc-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fcc-links a {
  font-size: 13px;
  color: inherit;
  text-decoration: underline;
}
.fcc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.fcc-btn {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--fcc-border-color);
  border-radius: calc(var(--fcc-border-radius) - 2px);
  background: transparent;
  color: var(--fcc-text-color);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
.fcc-btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.fcc-btn-primary {
  background: var(--fcc-primary-button-bg);
  color: var(--fcc-primary-button-text);
  border-color: var(--fcc-primary-button-bg);
}
.fcc-btn-secondary {
  background: var(--fcc-secondary-button-bg);
  color: var(--fcc-secondary-button-text);
}
.fcc-btn-link {
  border-color: transparent;
  text-decoration: underline;
  padding-left: 4px;
  padding-right: 4px;
}

.fcc-modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
}
.fcc-modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--fcc-background);
  border: 1px solid var(--fcc-border-color);
  border-radius: var(--fcc-border-radius);
  box-shadow: var(--fcc-shadow);
  padding: 20px;
}
.fcc-modal-title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
}
.fcc-category-list {
  display: grid;
  gap: 10px;
}
.fcc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--fcc-border-color);
  border-radius: calc(var(--fcc-border-radius) - 2px);
}
.fcc-category-text {
  display: grid;
  gap: 4px;
}
.fcc-category-text small {
  color: var(--fcc-muted-text);
  line-height: 1.4;
}
.fcc-category input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.fcc-modal-actions {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .fcc-root {
    left: 10px;
    right: 10px;
  }
  .fcc-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .fcc-actions {
    justify-content: stretch;
  }
  .fcc-actions .fcc-btn {
    flex: 1 1 auto;
  }
}
