/*!
 * Button adapted from Uiverse.io by mrhyddenn.
 * https://uiverse.io/mrhyddenn/stale-cheetah-42
 * Copyright (c) 2026 mrhyddenn
 * SPDX-License-Identifier: MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#err-catalogue .erc-photo { background: #f5f5f6; }

#err-catalogue .erc-photo .erc-standalone-photo {
  padding: 4%;
  box-sizing: border-box;
  background: #f5f5f6;
}

#err-catalogue .erc-meta,
#err-catalogue .erc-focus {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 6px;
}

#err-catalogue .erc-meta > span {
  padding: 2px 6px;
  border: 1px solid var(--erc-line);
  border-radius: 5px;
  color: var(--erc-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

#err-catalogue .erc-meta > .erc-product-brand { color: var(--erc-pine); }
#err-catalogue .erc-meta > .erc-product-gauge { font-variant-numeric: tabular-nums; }

#err-catalogue .erc-focus {
  --erc-focus-bg: #e5f3ff;
  --erc-focus-ink: #12416c;
  --erc-focus-edge: #9ac7ee;
  --erc-focus-dot: #146ebe;
}

html[data-err2-mode="dark"] #err-catalogue .erc-focus {
  --erc-focus-bg: #1d405f;
  --erc-focus-ink: #daf0ff;
  --erc-focus-edge: #5082a9;
  --erc-focus-dot: #85d2ff;
}

#err-catalogue .erc-focus > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--erc-focus-edge);
  border-radius: 6px;
  background: var(--erc-focus-bg);
  color: var(--erc-focus-ink);
  font-size: 12px;
  font-weight: 730;
  line-height: 1.25;
}

#err-catalogue .erc-focus > span::before {
  content: '';
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--erc-focus-dot);
}

@media (prefers-reduced-motion: no-preference) {
  #err-catalogue .erc-focus.erc-focus-visible > span::before {
    animation: erc-focus-signal .65s ease-out;
  }
  #err-catalogue .erc-focus.erc-focus-visible > span:nth-child(2)::before {
    animation-delay: .1s;
  }
}

@keyframes erc-focus-signal {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  40% { box-shadow: 0 0 0 3px var(--erc-focus-dot); }
}

#err-catalogue .erc-product-date {
  margin: 5px 0 0;
  color: var(--erc-muted);
  font-size: 11px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

#err-catalogue .erc-rate { min-height: 0; margin: 8px 0; }
#err-catalogue .erc-rate strong {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 715;
  letter-spacing: -.015em;
}

#err-catalogue .erc-card-actions {
  --erc-action-ink: #152f50;
  --erc-action-edge: #7699b6;
  --erc-action-glass: linear-gradient(155deg, rgb(255 255 255 / 90%), rgb(210 232 248 / 51%));
  --erc-action-shadow: inset 0 1px 1px #fff, 0 2px 6px #173c581a;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

html[data-err2-mode="dark"] #err-catalogue .erc-card-actions {
  --erc-action-ink: #edf6ff;
  --erc-action-edge: #7194b5;
  --erc-action-glass: linear-gradient(155deg, rgb(195 225 255 / 24%), rgb(73 133 187 / 17%));
  --erc-action-shadow: inset 0 1px 1px #d1eaff44, 0 2px 6px #050d1980;
}

#err-catalogue .erc-card-actions > :is(.erc-action, .erc-review) {
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 4px 9px;
  border: 1px solid var(--erc-action-edge);
  border-radius: 999px;
  background: var(--erc-action-glass);
  box-shadow: var(--erc-action-shadow);
  color: var(--erc-action-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#err-catalogue .erc-card-actions > .erc-review {
  box-shadow: inset 0 1px 1px rgb(223 240 255 / 36%);
}

#err-catalogue .erc-card-actions > a.erc-review::after {
  content: '↗';
  margin-inline-start: 2px;
}

#err-catalogue .erc-card-actions > :is(.erc-action, .erc-review):is(:hover, :focus-visible) {
  border-color: var(--erc-action-ink);
  text-decoration: none;
}

#err-catalogue .erc-card-actions > :is(.erc-action, .erc-review):focus-visible {
  outline: 2px solid var(--erc-action-ink);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  #err-catalogue .erc-meta > span { font-size: 10px; }
  #err-catalogue .erc-focus { gap: 4px; }
  #err-catalogue .erc-focus > span { padding: 2px 5px; font-size: 11px; }
  #err-catalogue .erc-card-actions { gap: 4px; }
  #err-catalogue .erc-card-actions > :is(.erc-action, .erc-review) {
    min-height: 38px;
    padding-inline: 4px;
    font-size: 11px;
  }
  #err-catalogue .erc-card-actions > a.erc-review::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #err-catalogue .erc-card-actions > :is(.erc-action, .erc-review) { transition: none; }
}

