import { css } from '//resources/lit/v3_0/lit.rollup.js';
import { getCss as getSpSharedStyle } from 'chrome://customize-chrome-side-panel.top-chrome/shared/sp_shared_style.css.js';
import { getCss as getCrHiddenStyleLit } from 'chrome://resources/cr_elements/cr_hidden_style_lit.css.js';
import { getCss as getCrIconsLit } from 'chrome://resources/cr_elements/cr_icons_lit.css.js';
let instance = null;
export function getCss() {
    return instance || (instance = [...[getCrHiddenStyleLit(), getCrIconsLit(), getSpSharedStyle()], css `
#editButtonsContainer {
  display: flex;
  gap: 8px;
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

#thirdPartyManageLinkButton {
  display: block;
  margin-bottom: 8px;
  width: 100%;
}

#editThemeButton {
  flex-grow: 1;
}

#wallpaperSearchButton {
  flex-grow: 1.5;
}

.edit-theme-icon {
  --cr-icon-color: currentColor;
  margin-inline-end: 0;
  margin-inline-start: 0;
}

#editThemeIcon {
  --cr-icon-image: url(icons/image.svg);
  --cr-icon-size: 12px;
  height: 12px;
  width: 12px;
}

#wallpaperSearchIcon {
  --cr-icon-image: url(icons/sparkle.svg);
  --cr-icon-size: 20px;
  height: 20px;
  width: 20px;
}

#setClassicChromeButton {
  --cr-icon-image: url(icons/reset.svg);
}

#uploadedImageButton {
  --cr-icon-image: url(icons/upload.svg);
}

#searchedImageButton {
  --cr-icon-image: url(icons/generated_image.svg);
}

managed-dialog {
  --cr-dialog-width: min(calc(100% - 32px), 512px);
}

customize-color-scheme-mode,
.sp-hr {
  width: calc(100% - 32px);
}

.sp-hr {
  margin: 0 16px;
}

customize-color-scheme-mode {
  display: block;
  margin: 16px;
}

cr-theme-color-picker {
  display: block;
  margin-bottom: 16px;
}

.theme-button {
  margin-top: 16px;
}

.theme-button:not([hidden]) ~ #editButtonsContainer {
  margin: 20px 16px;
}

.link-out-button {
  --cr-icon-image: url('chrome://resources/images/open_in_new.svg');
}

#followThemeToggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 10px var(--sp-card-inline-padding);
}

#followThemeToggleTitle {
  font-size: inherit;
  line-height: inherit;
}`]);
}
