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

:host {
  break-inside: avoid;
  display: block;
  width: 100%;
  position: relative;
}

fieldset {
  border: 0;
  padding: 0;
  padding: 4px 0 0;
}

.link {
  color: var(--sys-color-primary);
  text-decoration: underline;
  cursor: pointer;
  outline-offset: 2px;
}

.account-avatar {
  border: 0;
  border-radius: var(--sys-shape-corner-full);
  display: block;
  height: var(--sys-size-9);
  width: var(--sys-size-9);
}

.account-info {
  display: flex;
  align-items: center;
}

.account-email {
  display: flex;
  flex-direction: column;
  margin-left: 8px;
}

.not-signed-in {
  padding-bottom: 4px;
}

.setting-checkbox-container {
  display: flex;
  align-items: center;
  gap: var(--sys-size-2);
}

.setting-checkbox {
  display: inline-block;
}

.gdp-profile-container {
  padding-bottom: var(--sys-size-4);

  & .divider {
    left: 0;
    position: absolute;
    width: 100%;
    height: var(--sys-size-1);
    background: var(--sys-color-divider);
  }

  & .gdp-profile-header {
    display: flex;
    align-items: center;
    gap: var(--sys-size-5);
    font-family: "Google Sans", system-ui;
    font-size: var(--sys-typescale-body3-size);
    height: var(--sys-size-11);

    & .gdp-logo {
      background-image: var(--image-file-gdp-logo-light);
      background-size: contain;
      width: 203px;
      height: 18px;
      background-repeat: no-repeat;
    }

    :host-context(.theme-with-dark-background) & .gdp-logo {
      background-image: var(--image-file-gdp-logo-dark);
    }
  }

  & .gdp-profile-sign-up-content {
    padding-top: var(--sys-size-7);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  & .gdp-profile-details-content {
    padding-top: var(--sys-size-7);
    font: var(--sys-typescale-body4-regular);

    & .plan-details {
      margin-top: var(--sys-size-3);
      height: 18px;
      display: flex;
      align-items: center;
    }

    & .setting-container {
      /* `<settigns-checkbox>` already provides 6px margin and we want to get rid of it here */
      margin: calc(var(--sys-size-3) - 6px) -6px -6px;
      display: flex;
      align-items: center;
      gap: var(--sys-size-2);
    }

    & .tooltip-content {
      max-width: 278px;
      padding: var(--sys-size-2) var(--sys-size-3);
      font: var(--sys-typescale-body5-regular);
    }
  }
}
