/* 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=/signin_shared.css.js
 * #import=/signin_vars.css.js
 * #import=/tangible_sync_style_shared.css.js
 * #import=chrome://resources/cr_elements/cr_spinner_style_lit.css.js
 * #scheme=relative
 * #include=signin-shared tangible-sync-style-shared cr-spinner-style-lit
 * #css_wrapper_metadata_end */

/* TODO look at UI with inspector to see which lines are overridden by the
 shared config. */
:host {
  --content-container-max-width: 500px;
  --sync-benefits-list-color: var(--google-grey-50);
  --sync-benefit-icon-color: var(--google-blue-600);
  background-image: url('images/shared_gradient_light_background.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--cr-primary-text-color);
  display: block;
}

@media (prefers-color-scheme: dark) {
  :host {
    --sync-benefits-list-color: var(--google-grey-800);
    --sync-benefit-icon-color: var(--google-blue-300);
    background-image: url('images/shared_gradient_dark_background.svg');
  }
}

@keyframes fade-in-animation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100%;
  }
}

.secondary {
  color: var(--cr-secondary-text-color);
}

.action-row {
  display: flex;
  justify-content: flex-end;
  max-width: var(--content-container-max-width);
  position: relative;
}

.action-row:not(.dialog) {
  width: 100%;
}

.action-row.dialog {
  margin: 0 38px;
}

.spinner {
  margin: auto 0;
}

#settingsButton {
  inset-inline-start: 0;
  position: absolute;
}


#avatarContainer {
  --avatar-border-width: 2px;
  --avatar-size: var(--tangible-sync-style-avatar-size);

  align-items: center;
  background-color: var(--sync-benefits-list-color);
  border-radius: 50%;
  display: flex;
  height: var(--avatar-size);
  justify-content: center;
  left: 0;
  margin: auto;
  position: relative;
  right: 0;
  width: var(--avatar-size);
  z-index: 1;
}

.loading-spinner {
  height: 50%;
  width: 50%;
}

#avatar {
  /** The user avatar may be transparent, add a background */
  background-color: var(--md-background-color);
  border: var(--avatar-border-width) solid var(--md-background-color);
  border-radius: 50%;
  height: 100%;
  left: calc(-1 * var(--avatar-border-width));
  position: absolute;
  top: calc(-1 * var(--avatar-border-width));
  width: 100%;
}

.work-badge {
  bottom: 0;
  position: absolute;
}

#contentContainer {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  margin: auto;
  max-width: var(--content-container-max-width);
  text-align: center;
}

#contentContainer h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

/* Styles added below were copied from tangible_sync_style class which was
removed to customize the container. */
.action-container {
  --action-container-padding: 0;
  column-gap: 12px;
}

.action-container cr-button {
  --cr-button-height: 36px;
  font-size: 0.75rem;
  min-width: 133px;
}

.action-container #confirmButton {
  font-weight: 500;
}

.action-container #notNowButton,
.action-container #settingsButton {
  font-weight: normal;
}

.dialog .action-container cr-button {
  min-width: 111px;
}

.main-container:not(.dialog) {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.main-container.dialog {
  display: flex;
  height: auto;
  padding: 38px 0;
}

.dialog #contentContainer {
  --cr-button-height: 32px;
}

#syncBenefitsList {
  background: var(--sync-benefits-list-color);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  font-size: 0.81rem;
  font-weight: 400;
  line-height: 20px;
  margin: 24px 0 16px;
  padding: 24px;
  row-gap: 16px;
}

.dialog #syncBenefitsList {
  margin: 16px 38px;
  padding: 20px 24px;
}

.sync-benefit {
  align-items: center;
  column-gap: 12px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.sync-benefit-icon {
  color: var(--sync-benefit-icon-color);
  height: 24px;
  width: 24px;
}

.sync-info-desc {
  font-size: 0.75rem;
  line-height: 20px;
  margin: 0 38px 16px;
}

.fade-in {
  animation: 500ms ease-in-out fade-in-animation;
}

.visibility-hidden {
  visibility: hidden;
}
