/* Main checklist container */
.ggc-sc {
  border-radius: 10px;
  padding: 12px;
  max-width: 493px;      /* cap width */
  width: 100%;           /* responsive on mobile */
  margin: 0 auto;        /* center on larger screens */
  box-sizing: border-box;
  background-color: black;
}

/* Header row: title + (hidden) per-checklist reset icon */
.ggc-sc .ggc-sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ggc-sc .ggc-sc-title {
  margin: 0;
}

/* Per-checklist reset: keep functional but hide visually */
.ggc-sc .ggc-sc-reset {
  display: none; /* hidden; used only by JS for per-checklist clearing */
}

/* List styling */
.ggc-sc .ggc-sc-list,
.ggc-sc .ggc-sc-list ul {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
}

.ggc-sc-item {
  margin: 0.35rem 0;
}

.ggc-sc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ggc-sc-label {
  flex: 1;
}

/* Checked items */
.ggc-sc-item.is-checked > .ggc-sc-row .ggc-sc-label {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Children are always visible (no toggle) */
.ggc-sc-children {
  margin-left: 1.25rem;
}

/* Checkbox accent color can be influenced by CSS variable */
.ggc-sc-item input[type="checkbox"] {
  accent-color: var(--ggc-accent, initial);
}

/* Wrapper for global progress + reset icon */
.ggc-sc-reset-all-wrap {
  max-width: 360px;
  width: 100%;
  margin: 0.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;            /* space between text and icon */
  font-size: 0.9rem;
  box-sizing: border-box;
}

.ggc-sc-reset-all-wrap .ggc-sc-progress {
  white-space: nowrap;
}

/* Global "Reset All" button (icon-only) */
.ggc-sc-reset-all {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.ggc-sc-reset-all:hover,
.ggc-sc-reset-all:focus {
  opacity: 1;
}

.ggc-sc-reset-all img {
  width: 20px;   /* small icon */
  height: 20px;
  display: block;
}

/* Optional: small error styling */
.ggc-sc-error {
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 6px;
  padding: 8px;
  max-width: 493px;
  margin: 0 auto;
}
