/* 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
 * #scheme=relative
 * #css_wrapper_metadata_end */

.banner-section {
  background-color: var(--promotion-banner-background);
  padding: 24px;
}

.banner-section-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 24px;
}

.banner-actions-container {
  display: flex;
  width: 100%;
  gap: 16px;
  justify-content: space-between;
  flex-direction: row;
}

.promotion-main-text-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promotion-text-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blue-pill-button {
  background-color: var(--promotion-pill-button-color);
  width: 202px;
  padding: 8px 0 8px 0;
  text-align: center;
  line-height: 20px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  color: var(--promotion-pill-text-color);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
}

.blue-pill-button:hover {
  background: color-mix(
    in srgb,
    var(--promotion-pill-button-color-hover),
    var(--promotion-pill-button-color)
  );
}

.banner-title {
  color: var(--promotion-banner-title-color);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  display: contents;
}

.banner-description {
  color: var(--promotion-banner-description-color);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.promotion-icon-container {
  display: flex;
  align-items: center;
}

#close-icon-container {
  -webkit-mask-image: url(chrome://resources/images/promotion_policy_banner_close.svg);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 20px;
  background-color: #5f6368;
  height: 20px;
  width: 20px;
}

@media (prefers-color-scheme: dark) {
  #close-icon-container {
    background-color: #f1f3f4;
  }
}

@media (forced-colors: active) {
  #close-icon-container {
    filter: invert(100%);
  }
}

.dismiss-button {
  height: 20px;
  width: 20px;
  background-color: transparent;
  cursor: pointer;
  border: none;
  padding-inline: 0;
  padding-block: 0;
}

/* Remove the icon with smaller width devices for promotion banner */
@media only screen and (max-width: 530px) {
  .promotion-icon-container {
    display: none;
  }
}
