/* BaseCheckbox Component Styles */

.mint-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.mint-checkbox--default {
  width: fit-content;
}

.mint-checkbox--row {
  width: 100%;
  min-height: 2rem;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  box-sizing: border-box;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.mint-checkbox--row:hover {
  background: var(--bg-hover);
}

.mint-checkbox--disabled {
  opacity: var(--mint-disabled-opacity);
  cursor: not-allowed;
}

.mint-checkbox--disabled.mint-checkbox--row:hover {
  background: transparent;
}

.mint-checkbox__row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.mint-checkbox--row:hover .mint-checkbox__row-icon {
  transform: scale(1.04);
}

.mint-checkbox__row-svg {
  width: 0.875rem;
  height: 0.875rem;
}

.mint-checkbox__row-text-icon {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.mint-checkbox__copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.mint-checkbox__copy .mint-tooltip {
  max-width: 100%;
}

.mint-checkbox--row .mint-checkbox__label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mint-checkbox__label--tooltip {
  cursor: help;
}

.mint-checkbox__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mint-checkbox__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mint-checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.25rem;
  border: 1.5px solid var(--_control-border-strong);
  background-color: var(--bg-card);
  color: var(--color-primary); /* SVG checkmark inherits currentColor */
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
  cursor: pointer;
}

.mint-checkbox__box--checked,
.mint-checkbox__box--indeterminate {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
}

.mint-checkbox__native:focus-visible + .mint-checkbox__box {
  box-shadow: var(--focus-ring-offset);
}

.mint-checkbox__native:disabled + .mint-checkbox__box {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  cursor: not-allowed;
}

.mint-checkbox__native:disabled + .mint-checkbox__box.mint-checkbox__box--checked,
.mint-checkbox__native:disabled + .mint-checkbox__box.mint-checkbox__box--indeterminate {
  background-color: var(--text-muted);
  border-color: var(--text-muted);
  color: #FFFFFF;
}

.mint-checkbox__box--sm {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
}

.mint-checkbox__box--md {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}

.mint-checkbox__box--lg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.mint-checkbox__icon {
  color: inherit;
}

.mint-checkbox__icon--sm {
  width: 10px;
  height: 10px;
}

.mint-checkbox__icon--md {
  width: 12px;
  height: 12px;
}

.mint-checkbox__icon--lg {
  width: 14px;
  height: 14px;
}

.mint-checkbox__label {
  color: var(--text-primary);
  line-height: 1.25;
}

.mint-checkbox__label--sm {
  font-size: 0.875rem;
}

.mint-checkbox__label--md {
  font-size: 0.875rem;
}

.mint-checkbox__label--lg {
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .mint-checkbox--row,
  .mint-checkbox__row-icon,
  .mint-checkbox__box {
    transition: none;
  }

  .mint-checkbox--row:hover .mint-checkbox__row-icon {
    transform: none;
  }
}
