/* Copyright 2024 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 */

:host {
  color: var(--cr-primary-text-color);
  line-height: 154%;
  overflow: hidden;
  user-select: text;
  --table-header: rgb(240, 240, 240);
}

@media (prefers-color-scheme: dark) {
  :host {
    --table-header: var(--google-grey-900-white-4-percent);
  }
}

html {
  height: 100%;
}

body {
  margin: 0;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

table {
  border-collapse: separate;
  font-family: monospace;
  border-spacing: 0;
  border-radius: var(--cr-card-border-radius);
  border: 1px solid var(--cr-separator-color);
  overflow: hidden;
  max-width: 800px;
}

pre,
table {
  font-size: 1.25em;
}

th,
td {
  border: none;
  padding: 6px 10px;
  text-align: center;
  overflow-wrap: break-word;
}

tr:not(:last-child) > td {
  border-bottom: 1px solid var(--cr-separator-color);
}

th:not(:last-child),
td:not(:last-child) {
  border-right: 1px solid var(--cr-separator-color);
}

th {
  background: var(--table-header);
  border-bottom: 1px solid var(--cr-separator-color);
  color: var(--cr-primary-text-color);
}

label {
  margin: 10px 0;
}

h2 {
  width: max-content;
}

a[href] {
  color: var(--cr-link-color);
}

.url {
  text-align: start;
}

#url-checker-input {
  display: block;
  margin: 1em 0;
  width: 400px;
}

#xml-not-fetched-yet,
#xml-last-fetch {
  display: none;
}

.policy-prop {
  background-color: var(--mwb-background-color);
  color: rgb(36, 41, 47);
}

.tooltip {
  border-bottom: 1px dotted #666;
  display: inline-block;
  position: relative;
}

.tooltip .right {
  background-color: #eee;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  color: #444;
  font-size: 0.8rem;
  font-weight: normal;
  left: 100%;
  margin-inline-start: 20px;
  min-width: 200px;
  padding: 10px 20px;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  visibility: hidden;
}

.tooltip:hover .right {
  visibility: visible;
}

.container {
  margin: 0 24px;
}

.description-container {
  margin-bottom: 24px;
}

.url-checker-row cr-input {
  max-width: 800px;
}

.sitelists-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}

.sitelists-container > section {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  min-width: 450px;
}

.xml-config-row > section[hidden] {
  display: none;
}

.card {
  background-color: var(--cr-card-background-color);
  border-radius: var(--cr-card-border-radius);
  box-shadow: var(--cr-card-shadow);
  padding: var(--cr-section-padding);
}

header {
  align-items: center;
  background: var(--page-background, white);
  box-sizing: border-box;
  color: var(--text-color, var(--google-grey-900));
  display: flex;
  height: var(--cr-toolbar-height, 56px);
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: inset 0 5px 6px -3px var(--header-shadow-color, rgba(0, 0, 0, .4));
}

@media (prefers-color-scheme: dark) {
  header {
    background: var(--page-background, var(--google-grey-900));
    color: var(--text-color, var(--cr-secondary-text-color));
    box-shadow: inset 0 5px 6px -3px var(--header-shadow-color, rgba(0, 0, 0, .4));
  }
}

.header-left h1 {
  font-size: 170%;
  font-weight: 500;
  letter-spacing: .25px;
  line-height: normal;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
}
