/* Copyright 2026 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #import=//resources/cr_elements/cr_shared_vars.css.js
 * #scheme=relative
 * #css_wrapper_metadata_end */

:host {
  display: block;
  background-color: var(--cr-card-background-color);
  border-radius: var(--cr-card-border-radius, 16px);
  border: 1px solid var(--cr-separator-color);
  box-shadow: none;
  overflow: hidden;
}

cr-expand-button,
.tab-todo-content {
  padding: 16px 20px;
  min-height: 100px;
  --cr-section-min-height: 100px;
  box-sizing: border-box;
}

cr-expand-button {
  --cr-section-vertical-padding: 0;
  --cr-expand-button-size: 32px;
  --cr-expand-button-icon-size: 20px;
}

cr-expand-button::part(icon) {
  --cr-icon-button-margin-start: 2px;
  --cr-icon-button-margin-end: 0;
  margin-inline-start: 2px;
  margin-inline-end: 0;
}

.todo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

#check-circle {
  margin-inline-start: 0;
  --cr-icon-button-margin-start: 0;
}

.todo-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.todo-info h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  color: var(--cr-primary-text-color);
}

.tab-todo-content .todo-info h3 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.description {
  font-size: 14px;
  line-height: 20px;
  color: var(--cr-secondary-text-color);
  margin: 4px 0 0 0;
  text-align: start;
  white-space: pre-line;
}

.todo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.todo-actions cr-icon-button {
  --cr-icon-button-margin-start: 0;
  --cr-icon-button-margin-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

#moreButton {
  margin-inline-start: -6px;
}

.thumb-group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.expanded-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 16px 20px;
  border-top: 1px solid var(--cr-separator-color);
  font-size: 14px;
  color: var(--cr-secondary-text-color);
  text-align: start;
  gap: 16px;
}

.expanded-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.references-section {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.references-label {
  flex-shrink: 0;
}

.references-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.reference-link {
  color: var(--cr-link-color);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.reference-link:hover {
  text-decoration: underline;
}

.dismiss-button {
  flex-shrink: 0;
}
