.libro-recherche-trigger {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  color: #e30613;
  cursor: pointer;
}
.libro-recherche-trigger:is(:hover, :active, :focus) {
  background: transparent !important;
  box-shadow: none !important;
  color: #e30613;
}
.libro-recherche-trigger svg { display: block; pointer-events: none; }
.libro-recherche-trigger:focus-visible,
.libro-recherche-dialog :is(button, a):focus-visible {
  outline: 2px solid #e30613;
  outline-offset: 3px;
}

#libro-recherche-dialog:not([open]) { display: none; }
#libro-recherche-dialog {
  position: fixed;
  inset: var(--libro-search-top, 76px) var(--libro-search-right, 16px) auto auto;
  box-sizing: border-box;
  width: min(550px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - var(--libro-search-top, 76px) - 12px);
  max-height: calc(100dvh - var(--libro-search-top, 76px) - 12px);
  padding: 0;
  margin: 0;
  border: 1px solid #dedfe2;
  border-radius: 12px;
  background: #fff;
  color: #17181b;
  box-shadow: 0 16px 45px #0005;
  font: inherit;
  overscroll-behavior: contain;
}
#libro-recherche-dialog::backdrop { background: #0007; }
.libro-recherche-panel { padding: 18px; }
.libro-recherche-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.libro-recherche-heading h2 {
  margin: 0;
  color: #17181b;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 750;
}
.libro-recherche-dialog .libro-recherche-close {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f3f4f5;
  color: #17181b;
  font: 400 27px/1 system-ui, sans-serif;
  cursor: pointer;
}
.libro-recherche-dialog form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.libro-recherche-dialog input[type="search"],
.libro-recherche-dialog .libro-recherche-submit {
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  border-radius: 6px;
  font: inherit;
}
.libro-recherche-dialog input[type="search"] {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #bfc2c8;
  background: #f8f8f9;
  color: #17181b;
  font-size: 16px;
}
.libro-recherche-dialog input[type="search"]:focus {
  border-color: #3e4147 !important;
  outline: none !important;
  box-shadow: none !important;
}
.libro-recherche-dialog .libro-recherche-submit {
  padding: 8px 13px;
  border: 0;
  background: #d90b18;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.libro-recherche-dialog .libro-recherche-submit:hover { background: #bd0713; }
.libro-recherche-status {
  margin: 12px 0 6px;
  color: #575b64;
  font-size: 13px;
}
.libro-recherche-status:empty,
.libro-recherche-results:empty { display: none; }
.libro-recherche-dialog .libro-recherche-results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.libro-recherche-results li + li { border-top: 1px solid #ebeced; }
.libro-recherche-results li a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 65px;
  padding: 6px;
  border-radius: 6px;
  color: #17181b;
  text-decoration: none;
}
.libro-recherche-results li a:hover,
.libro-recherche-results li a:focus-visible { background: #f5f5f7; }
.libro-recherche-results img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.libro-recherche-name {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.libro-recherche-price { max-width: 138px; font-size: 13px; font-weight: 750; text-align: end; }
@media (max-width: 480px) {
  .libro-recherche-trigger { flex-basis: 34px; width: 34px; }
  .libro-recherche-panel { padding: 13px; }
  .libro-recherche-results li a {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 3px;
  }
  .libro-recherche-results img { grid-row: 1 / span 2; }
  .libro-recherche-price { grid-column: 2; max-width: none; text-align: start; }
  .libro-recherche-dialog .libro-recherche-submit { padding-inline: 8px; }
}
