/**
 * Copyright since 2026 Solauv
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 *
 * @author    Solauv
 * @copyright Since 2026 Solauv
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

/*
 * Colours of the shop on the hummingbird theme: main colour #3d87ff, hover #2E67C2 by
 * default, set in the configuration of the module (Colours). The colours are CSS variables
 * (--ebi43-…): their default values are below, the module states them again from its
 * settings in the head of the page.
 *
 * Hummingbird compiles its main colour (#0b69f6) and the shades derived from it into
 * fixed values. The first part restates each of these declarations with the matching
 * shade of the shop's colour. It is generated from the theme.css of hummingbird 2.1.2:
 * regenerate it when the theme is updated. The theme declares its rules in cascade
 * layers, so these rules, outside any layer, take precedence.
 */

/* ---- main colour: begin (generated) ---- */
/* 68 declarations, generated from hummingbird theme.css */
/* Default values: the colours of the shop. The module states them again, from its
   settings, in the head of the page (hook displayHeader). */
:root {
  --ebi43-active: #2b61b6;
  --ebi43-hover: #2e67c2;
  --ebi43-hover-rgb: 46,103,194;
  --ebi43-primary: #3d87ff;
  --ebi43-primary-rgb: 61,135,255;
  --ebi43-shade-40: #255199;
  --ebi43-shade-80: #0c1b33;
  --ebi43-tint-15-rgb: 90,153,255;
  --ebi43-tint-40: #8bb7ff;
  --ebi43-tint-40-rgb: 139,183,255;
  --ebi43-tint-50: #9ec3ff;
  --ebi43-tint-52: #a2c5ff;
  --ebi43-tint-52-rgb: 162,197,255;
  --ebi43-tint-60: #b1cfff;
  --ebi43-tint-70: #c5dbff;
  --ebi43-tint-80: #d8e7ff;
}

:root,
[data-bs-theme=light] {
  --bs-blue: var(--ebi43-primary);
  --bs-primary: var(--ebi43-primary);
  --bs-primary-rgb: var(--ebi43-primary-rgb);
  --bs-primary-text-emphasis: var(--ebi43-primary);
  --bs-primary-bg-subtle: var(--ebi43-tint-80);
  --bs-primary-border-subtle: var(--ebi43-tint-60);
  --bs-link-color: var(--ebi43-primary);
  --bs-link-color-rgb: var(--ebi43-primary-rgb);
  --bs-link-hover-color: var(--ebi43-hover);
  --bs-link-hover-color-rgb: var(--ebi43-hover-rgb);
  --bs-focus-ring-color: rgba(var(--ebi43-primary-rgb),.25);
}

[data-bs-theme=dark] {
  --bs-primary-text-emphasis: var(--ebi43-tint-40);
  --bs-primary-bg-subtle: var(--ebi43-shade-80);
  --bs-primary-border-subtle: var(--ebi43-shade-40);
  --bs-link-color: var(--ebi43-tint-40);
  --bs-link-hover-color: var(--ebi43-tint-52);
  --bs-link-color-rgb: var(--ebi43-tint-40-rgb);
  --bs-link-hover-color-rgb: var(--ebi43-tint-52-rgb);
}

.link-primary:focus,
.link-primary:hover {
  color: RGBA(var(--ebi43-hover-rgb),var(--bs-link-opacity,1))!important;
  text-decoration-color: RGBA(var(--ebi43-hover-rgb),var(--bs-link-underline-opacity,1))!important;
}

.accordion {
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--ebi43-primary-rgb),.25);
}

.btn-primary {
  --bs-btn-bg: var(--ebi43-primary);
  --bs-btn-border-color: var(--ebi43-primary);
  --bs-btn-hover-bg: var(--ebi43-hover);
  --bs-btn-hover-border-color: var(--ebi43-hover);
  --bs-btn-focus-shadow-rgb: var(--ebi43-tint-15-rgb);
  --bs-btn-active-bg: var(--ebi43-hover);
  --bs-btn-active-border-color: var(--ebi43-active);
  --bs-btn-disabled-bg: var(--ebi43-primary);
  --bs-btn-disabled-border-color: var(--ebi43-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--ebi43-primary);
  --bs-btn-border-color: var(--ebi43-primary);
  --bs-btn-hover-bg: var(--ebi43-primary);
  --bs-btn-hover-border-color: var(--ebi43-primary);
  --bs-btn-focus-shadow-rgb: var(--ebi43-primary-rgb);
  --bs-btn-active-bg: var(--ebi43-primary);
  --bs-btn-active-border-color: var(--ebi43-primary);
  --bs-btn-disabled-color: var(--ebi43-primary);
  --bs-btn-disabled-border-color: var(--ebi43-primary);
}

.btn-link {
  --bs-btn-focus-shadow-rgb: var(--ebi43-tint-15-rgb);
}

.btn-close {
  --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(var(--ebi43-primary-rgb),.25);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--ebi43-primary);
}

.dropdown-menu-dark {
  --bs-dropdown-link-active-bg: var(--ebi43-primary);
}

.form-control:focus {
  border-color: var(--ebi43-tint-50);
  box-shadow: 0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}

.form-select:focus {
  border-color: var(--ebi43-tint-50);
  box-shadow: 0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}

.form-check-input:focus {
  border-color: var(--ebi43-tint-50);
  box-shadow: 0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}

.form-check-input:checked {
  background-color: var(--ebi43-primary);
  border-color: var(--ebi43-primary);
}

.form-check-input[type=checkbox]:indeterminate {
  background-color: var(--ebi43-primary);
  border-color: var(--ebi43-primary);
}

.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px #fff,0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}

.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 1px #fff,0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}

.form-range::-webkit-slider-thumb {
  background-color: var(--ebi43-primary);
}

.form-range::-webkit-slider-thumb:active {
  background-color: var(--ebi43-tint-70);
}

.form-range::-moz-range-thumb {
  background-color: var(--ebi43-primary);
}

.form-range::-moz-range-thumb:active {
  background-color: var(--ebi43-tint-70);
}

.list-group {
  --bs-list-group-active-bg: var(--ebi43-primary);
  --bs-list-group-active-border-color: var(--ebi43-primary);
}

.nav-link:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--ebi43-primary);
}

.pagination {
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--ebi43-primary-rgb),.25);
}

.progress,
.progress-stacked {
  --bs-progress-bar-bg: var(--ebi43-primary);
}

.table-primary {
  --bs-table-bg: var(--ebi43-tint-80);
}

.search-filters__form-check--color .color:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}

.stars-selector:has(.stars-selector__input:focus-visible) {
  box-shadow: 0 0 0 .25rem rgba(var(--ebi43-primary-rgb),.25);
}
/* ---- main colour: end (generated) ---- */

/* Mobile menu button: white icon on the main colour. */
.ps-mainmenu__mobile-toggle .menu-toggle .material-icons {
  background-color: var(--ebi43-primary);
  color: #fff;
}

/* Arrows of the home slider: white arrow on the main colour. */
.ps-imageslider .carousel-control-prev-icon,
.ps-imageslider .carousel-control-next-icon {
  background-color: var(--ebi43-primary);
  background-size: 60% 60%;
}

/* Room under the caption of the home slider. */
.ps-imageslider__figcaption {
  padding-bottom: 50px;
}

/* No shadow on the product miniatures. */
.product-miniature__inner:hover {
  box-shadow: none;
}

/* Volume discounts table of the product page: grey header, alternate rows. */
.product__discounts .discounts-table thead th {
  --bs-table-bg: #d7dbdd;
  background-color: #d7dbdd;
}

.product__discounts .discounts-table tbody tr:nth-of-type(odd) > * {
  --bs-table-bg: #fff;
  background-color: #fff;
}

.product__discounts .discounts-table tbody tr:nth-of-type(even) > * {
  --bs-table-bg: #f2f3f4;
  background-color: #f2f3f4;
}
