/* ViewletExtensionDetail.css */
.ExtensionDetail {
  user-select: text;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--MainBackground);
  color: var(--WorkbenchForeground);
  padding-left: var(--ExtensionDetailPaddingLeft);
  padding-right: var(--ExtensionDetailPaddingRight);
  flex: 1;
}

.Large.ExtensionDetail {
  gap: 20px;
}

.ExtensionDetailError {
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.ExtensionDetailErrorCard {
  background: var(--SideBarBackground, color-mix(in srgb, var(--WorkbenchForeground) 5%, var(--MainBackground)));
  border: 1px solid var(--PanelBorderTopColor, color-mix(in srgb, var(--WorkbenchForeground) 22%, transparent));
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  contain: content;
  display: grid;
  gap: 8px 16px;
  grid-template-columns: 40px minmax(0, 1fr);
  max-width: 560px;
  padding: 28px;
  width: 100%;
}

.ExtensionDetailErrorIcon {
  --MaskIconSize: 32px;
  color: var(--InputValidationWarningBorder, #cca700);
  grid-row: 1 / span 2;
  height: 40px;
  width: 40px;
}

.ExtensionDetailErrorTitle {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.ExtensionDetailErrorMessage {
  color: var(--DescriptionForeground, color-mix(in srgb, var(--WorkbenchForeground) 76%, transparent));
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.ExtensionDetail::-webkit-scrollbar {
  width: 14px;
}

.ExtensionDetail::-webkit-scrollbar-track {
  background: transparent;
}

.ExtensionDetail::-webkit-scrollbar-thumb {
  background: var(--EditorScrollBarBackground);
}

.ExtensionDetail::-webkit-scrollbar-thumb:hover {
}

.ExtensionDetailMarkdown {
  padding: 0 20px;
}

.ExtensionDetailMarkdownLarge {
  padding: 0 40px;
}

/* TODO move into separate file */
.ExtensionDetailPanel {
  display: flex;
  contain: strict;
  flex: 1;
  max-width: var(--ExtensionDetailMaxWidth);
  margin: 0 auto;
  width: 100%;
}

/* TODO use separate classname and avoid nesting */
.ExtensionDetail .Markdown {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.RuntimeStatusDefinitionList {
  contain: content;
  display: flex;
}

.Resource {
  display: flex;
  contain: content;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.Resource:hover {
  text-decoration: underline;
}

.ResourceIcon {
  width: 20px;
  height: 20px;
  contain: strict;
  color: inherit;
  display: flex;
}

/* TODO change this maybe */
.ExtensionDetail .Sash {
  position: relative;
}
