.quote-basket {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 460px);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #171717;
  background: #fff;
  color: #141414;
  font: 1rem/1.45 system-ui, sans-serif;
}

.quote-basket[open] {
  display: flex;
  flex-direction: column;
}

.quote-basket [hidden] {
  display: none;
}

.quote-basket::backdrop {
  background: rgb(0 0 0 / 58%);
}

.basket-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #141414;
  color: #fff;
}

.basket-heading h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.basket-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.basket-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.25rem;
}

.basket-lines {
  padding: 0;
  margin: 0;
  list-style: none;
}

.basket-line {
  padding-block: 1rem;
  border-bottom: 1px solid #bcbcbc;
  overflow-wrap: anywhere;
}

.basket-line h3 {
  margin: 0 0 .3rem;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #12662d;
}

.basket-line p {
  margin: .3rem 0;
  font-size: .95rem;
}

.basket-empty {
  margin: 1.5rem 0;
}

.basket-controls,
.basket-controls label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.basket-controls {
  justify-content: space-between;
  margin-top: .75rem;
}

.basket-controls input {
  width: 4.5rem;
  min-height: 2.5rem;
  padding: .3rem;
  border: 1px solid #141414;
  font: inherit;
}

.basket-controls button {
  min-height: 2.5rem;
  padding: .3rem .5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.basket-footer {
  flex: 0 0 auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid #141414;
}

.basket-footer p {
  margin: 0 0 .7rem;
  font-size: .95rem;
}

.basket-total {
  font-weight: 700;
}

.basket-request {
  display: block;
  min-height: 2.75rem;
  padding: .7rem .9rem;
  border: 1px solid #141414;
  background: #ff9cef;
  color: #141414;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.quote-basket .basket-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .7rem 1.25rem 1rem;
  border-top: 1px solid #bcbcbc;
}

.basket-links a {
  display: inline-block;
  padding-block: .35rem;
  color: #141414;
  font-weight: 700;
  text-decoration: underline;
}

.quote-basket :focus-visible {
  outline: 2px solid #12662d;
  outline-offset: 3px;
}

.basket-close:focus-visible {
  outline-color: #fff;
}
