/* Minimal overrides on top of Bootstrap */
:root {
  --bs-primary: rgb(232, 87, 42);
  --bs-primary-rgb: 232, 87, 42;
  --bs-link-color: rgb(232, 87, 42);
  --bs-link-hover-color: rgb(196, 71, 32);
  --bs-focus-ring-color: rgba(232, 87, 42, 0.25);
  --bs-pagination-active-bg: rgb(232, 87, 42);
  --bs-pagination-active-border-color: rgb(232, 87, 42);
  --bs-pagination-color: rgb(232, 87, 42);
  --bs-pagination-hover-color: rgb(196, 71, 32);
}

@font-face {
  font-family: "Lestori-Satoshi";
  src: url(../font/Satoshi-Medium.woff) format("woff"),
    url(../font/Satoshi-Medium.otf) format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Lestori-Satoshi";
  src: url(../font/Satoshi-Bold.woff) format("woff"),
    url(../font/Satoshi-Bold.otf) format("opentype");
  font-weight: 600;
}

body {
  background-color: rgb(251, 239, 222);
  font-family: "Lestori-Satoshi", system-ui, sans-serif;
}

.site-header {
  padding-top: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.site-brand:hover {
  color: inherit;
  opacity: 0.9;
}

.site-logo {
  height: 2.5rem;
  width: auto;
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(232, 87, 42);
}

.nav-link-header {
  color: rgb(232, 87, 42);
  text-decoration: none;
  font-weight: 600;
}

.nav-link-header:hover {
  color: rgb(196, 71, 32);
  text-decoration: underline;
}

.product-list td:nth-child(2) {
  min-width: 16rem;
  max-width: 36rem;
}

.product-lestori-cell {
  min-width: 8.5rem;
  vertical-align: middle;
}

.product-lestori-badge {
  white-space: nowrap;
}

tr.product-row {
  cursor: pointer;
}

tr.product-row:focus {
  outline: 2px solid rgb(232, 87, 42);
  outline-offset: -2px;
}

.cart-add-cell {
  width: 8rem;
  vertical-align: middle;
}

.cart-add-form .input-group {
  min-width: 7rem;
}

.product-detail .product-meta dt {
  font-weight: 600;
}

.edition-detail-layout .edition-cover img {
  max-height: 18rem;
  width: auto;
  display: block;
  margin: 0 auto;
}

.edition-detail-layout .edition-price {
  color: rgb(232, 87, 42);
  font-weight: 600;
}

.edition-detail-layout .edition-meta dt {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
}

.edition-detail-layout .edition-meta dd {
  margin-bottom: 0.5rem;
}

.lestori-status-widget {
  background: rgb(255, 252, 247);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lestori-status-widget .lestori-status-meta dt {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.875rem;
}

.lestori-status-widget .lestori-status-meta dd {
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.lestori-copies-table th,
.lestori-recordings-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lestori-recording-avatar-cell {
  width: 2rem;
}

.lestori-recording-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lestori-recording-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
}

.edition-sidebar {
  position: sticky;
  top: 1rem;
}

.supplier-offers-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.supplier-offer-card {
  background: rgb(255, 252, 247);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
}

.supplier-offer-card .supplier-badge {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.supplier-offer-card .supplier-cost {
  white-space: nowrap;
}

.supplier-offer-delete-btn {
  line-height: 1;
  opacity: 0.65;
}

.supplier-offer-delete-btn:hover,
.supplier-offer-delete-btn:focus {
  opacity: 1;
}

.supplier-offer-delete-icon {
  display: block;
}

.supplier-cost-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (max-width: 991.98px) {
  .edition-sidebar {
    position: static;
  }
}

.edition-our-price-input {
  max-width: 11rem;
}

.edition-our-price-admin .btn-outline-secondary {
  font-size: 0.75rem;
}
  max-height: 20rem;
  width: auto;
}

.btn-primary {
  --bs-btn-bg: rgb(232, 87, 42);
  --bs-btn-border-color: rgb(232, 87, 42);
  --bs-btn-hover-bg: rgb(196, 71, 32);
  --bs-btn-hover-border-color: rgb(196, 71, 32);
  --bs-btn-active-bg: rgb(176, 62, 28);
  --bs-btn-active-border-color: rgb(176, 62, 28);
  --bs-btn-disabled-bg: rgb(232, 87, 42);
  --bs-btn-disabled-border-color: rgb(232, 87, 42);
}

.form-control:focus {
  border-color: rgb(232, 87, 42);
  box-shadow: 0 0 0 0.25rem rgba(232, 87, 42, 0.25);
}

.page-item.active .page-link {
  background-color: rgb(232, 87, 42);
  border-color: rgb(232, 87, 42);
}

.page-link {
  color: rgb(232, 87, 42);
}

.page-link:hover {
  color: rgb(196, 71, 32);
}
