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

:host {
  align-items: center;
  background-color: var(--cr-card-background-color);
  border: 1px solid var(--cr-separator-color);
  border-radius: var(--cr-card-border-radius);
  box-shadow: var(--cr-elevation-1);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 16px 20px;
}

#actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

/* Allow action buttons to wrap when the viewport becomes narrower than the
   main container's max-width (defined in app.css). */
@media (max-width: 960px) {
  #actions {
    flex-shrink: 1;
    flex-wrap: wrap;
  }
}

#actions cr-button {
  min-width: 81px;
}

#details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  font-size: 0.85rem;
  gap: 4px;
  overflow: hidden;
}

#header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#name {
  color: var(--cr-primary-text-color);
  font-size: 1rem;
  font-weight: 500;
}

#version {
  background-color: var(--cr-hover-background-color);
  border-radius: 4px;
  font-weight: 500;
  padding: 2px 6px;
}

#source {
  color: var(--cr-link-color);
  word-break: break-all;
}

#source-text {
  font-weight: 500;
  margin-inline-start: 4px;
}

#id,
#source-text,
#version {
  color: var(--cr-secondary-text-color);
}

#id {
  font-family: monospace;
  word-break: break-all;
}

#icon-circle {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 48px;
  justify-content: center;
  width: 48px;
}

#app-icon {
  width: 100%;
  height: 100%;
}
