/* 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 {
  --showcase-text-gap_: 24px;
  --showcase-text-padding-top_: 48px;
  --subtitle-font-size_: 16px;
  --subtitle-line-height_: 24px;
/* Bump max width on Linux to leverage larger font sizes. */
<if expr="is_linux">
  --text-max-width_: 365px;
</if>
<if expr="not is_linux">
  --text-max-width_: 350px;
</if>
  --title-font-size_: 24px;
  align-items: center;
  color: var(--cr-primary-text-color);
  display: flex;
  flex-direction: row;
  gap: var(--content-gap);
  height: 100%;
  justify-content: center;
  margin: 0 16px 0;
}

@media screen and ((max-width: 780px) or (max-height: 600px)) {
  :host {
    --showcase-text-gap_: 12px;
    --showcase-text-padding-top_: 12px;
    --subtitle-font-size_: 14px;
    --subtitle-line-height_: 18px;
    --text-max-width_: 290px;
    --title-font-size_: 20px;
  }
}

.content-child {
  align-items: center;
  display: flex;
  flex: 1;
  height: 60%;
  max-height: var(--child-max-height);
  max-width: var(--child-max-width);
  width: 60%;
}

#showcase-illustration {
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
}

::slotted([slot='illustration']) {
  border-radius: 24px;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
}

#showcase-description {
  align-items: flex-start;
  color: var(--color-sys-on-surface);
  flex-direction: column;
  justify-content: flex-start;
}

#showcase-text {
  color: var(--color-sys-on-surface);
  display: flex;
  flex-direction: column;
  gap: var(--showcase-text-gap_);
  padding-top: var(--showcase-text-padding-top_);
}

.title {
  font-weight: 500;
  line-height: 32px;
  font-size: var(--title-font-size_);
  margin: 0;
  max-width: var(--text-max-width_);
}

.subtitle {
  font-size: var(--subtitle-font-size_);
  font-weight: 400;
  line-height: var(--subtitle-line-height_);
  margin: 0;
  max-width: var(--text-max-width_);
}

::slotted([slot='disclosure']) {
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  max-width: var(--text-max-width_);
  white-space: pre-line;
}

#button-container {
  display: flex;
  gap: 8px;
}

:host-context([dir='rtl']) ::slotted([slot='illustration']) {
  object-position: left center;
}
