.quote-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-block-size: 40px;
  padding: .55rem .72rem;
  border: 1px solid var(--pine);
  border-radius: 3px;
  background: var(--pine);
  color: #fff;
  font-weight: 800;
  font-size: .825rem;
  line-height: 1.25;
  white-space: nowrap;
}

.quote-trigger:hover, .quote-send:hover {
  background: #0c3428;
}

.quote-bag {
  display: inline-block;
  position: relative;
  flex: none;
  inline-size: 15px;
  block-size: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.quote-bag::before {
  content: '';
  position: absolute;
  inset-block-start: -5px;
  inset-inline: 3px;
  block-size: 5px;
  border: 1.5px solid currentColor;
  border-block-end: 0;
  border-radius: .4rem .4rem 0 0;
}

.quote-badge {
  display: grid;
  place-items: center;
  min-inline-size: 21px;
  min-block-size: 21px;
  padding-inline: .24rem;
  border-radius: 1rem;
  background: #e9eee7;
  color: #173c30;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.quote-float {
  position: fixed;
  z-index: 35;
  inset-inline-end: clamp(.8rem, 3vw, 2.6rem);
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  min-block-size: 46px;
  padding-inline: .8rem;
  box-shadow: 0 9px 35px #102b2460;
}

.quote-float:not(:has([data-quote-badge]:not([hidden]))) {
  display: none;
}

.product-grid > .product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
}

.product-card-link {
  display: block;
  inline-size: 100%;
  flex: 1 0 auto;
}

.product-card-link:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 4px;
}

.quote-card-action {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  align-self: flex-start;
  max-inline-size: 100%;
  min-block-size: 36px;
  margin-block-start: .66rem;
  padding: .38rem .62rem;
  border: 1px solid #b7c3bb;
  border-radius: 3px;
  background: #f1f4ef;
  color: #173c30;
  text-align: start;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.quote-card-action::before {
  content: '+';
  flex: none;
  font-size: 1.1rem;
  line-height: 1;
}

.quote-card-action:hover, .quote-card-action[data-quote-added] {
  border-color: var(--pine);
  background: #dbeade;
}

.quote-detail-action[data-quote-added] {
  background: #245e46;
}

.quote-card-action[data-quote-added]::before {
  content: '✓';
}

.quote-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  inline-size: min(100vw, 540px);
  block-size: 100%;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f7f7f3;
  color: var(--ink);
}

.quote-drawer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.quote-drawer::backdrop {
  background: #1318159c;
  backdrop-filter: blur(2px);
}

.quote-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .9rem;
  padding: 1.2rem clamp(.85rem, 4vw, 1.5rem);
  background: #152721;
  color: #fff;
}

.quote-heading p {
  margin: 0;
  color: #d5e4d7;
  font-size: .8rem;
}

.quote-heading p:first-child {
  font-weight: 800;
  letter-spacing: .08em;
}

.quote-heading h2 {
  margin: .22rem 0 .22rem;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.2;
}

.quote-close {
  min-block-size: 40px;
  padding: .35rem .7rem;
  border: 1px solid #819b8c;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font-size: .8rem;
  white-space: nowrap;
}

.quote-close:hover {
  background: #365348;
}

.quote-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(.8rem, 3.8vw, 1.5rem);
}

.quote-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-block-size: 17rem;
  padding: 1.1rem;
  text-align: center;
}

.quote-empty > .quote-bag {
  inline-size: 25px;
  block-size: 22px;
  color: var(--pine);
}

.quote-empty > .quote-bag::before {
  inset-inline: 6px;
}

.quote-empty p {
  margin-block: .8rem .45rem;
  font-weight: 800;
}

.quote-items {
  display: grid;
  gap: .68rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: .78rem;
  padding: .68rem;
  border: 1px solid #d5ddd4;
  border-radius: 4px;
  background: #fff;
}

.quote-item-image {
  grid-row: span 2;
  align-self: start;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #eeebe4;
}

.quote-item-image img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.quote-item-information {
  min-inline-size: 0;
}

.quote-item-name {
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.quote-item-name:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.quote-item-code {
  margin: .12rem 0;
  color: var(--muted);
  font-size: .79rem;
}

.quote-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .32rem .66rem;
  margin-block: .44rem .2rem;
}

.quote-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd6cb;
  border-radius: 3px;
  background: #f8faf8;
}

.quote-quantity button, .quote-quantity input {
  min-inline-size: 37px;
  min-block-size: 38px;
  padding: .25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
}

.quote-quantity button {
  font-size: 1.1rem;
  font-weight: 800;
}

.quote-quantity button:hover {
  background: #e0ebe1;
}

.quote-quantity input {
  inline-size: 4.35rem;
  border-inline: 1px solid #d5ddd4;
  appearance: textfield;
  font-variant-numeric: tabular-nums;
}

.quote-quantity input::-webkit-inner-spin-button {
  appearance: none;
}

.quote-item-remove, .quote-tools button {
  min-block-size: 37px;
  padding: .34rem .5rem;
  background: transparent;
  color: var(--pine);
  font-size: .79rem;
  text-decoration: underline;
  text-underline-offset: .23em;
}

.quote-item-remove, .quote-tools .quote-clear {
  color: #703c2e;
}

.quote-note-print, .quote-item-note-print {
  display: none;
}

.quote-item-note {
  grid-column: 2;
  margin-block-start: .42rem;
  font-size: .82rem;
}

.quote-item-note input,
input.quote-item-note,
.quote-notes textarea,
.quote-footer textarea {
  inline-size: 100%;
  min-block-size: 40px;
  padding: .48rem .58rem;
  border: 1px solid #cbd4c9;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.quote-notes {
  display: grid;
  gap: .35rem;
  margin-block-start: 1rem;
  font-weight: 800;
}

.quote-notes textarea, .quote-footer textarea {
  resize: vertical;
  font-weight: 400;
}

.quote-drawer:not(:has(.quote-item)) :is(.quote-notes, .quote-footer) {
  display: none;
}

.quote-footer {
  padding: .7rem clamp(.85rem, 4vw, 1.5rem) max(.8rem, env(safe-area-inset-bottom));
  border-block-start: 1px solid #cbd4ca;
  background: #eef2eb;
}

.quote-send {
  display: flex;
  justify-content: center;
  align-items: center;
  min-block-size: 46px;
  padding: .45rem .65rem;
  border-radius: 3px;
  background: var(--pine);
  color: #fff;
  text-align: center;
  font-weight: 800;
  line-height: 1.25;
}

.quote-tools {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .1rem .35rem;
  margin-block-start: .28rem;
}

.quote-document-links a:not([hidden]) {
  display: inline-block;
  margin-block-start: .4rem;
  color: var(--pine);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .17em;
}

.quote-send[aria-busy="true"], .quote-tools button:disabled {
  opacity: .68;
  cursor: progress;
}

.quote-status {
  margin-block-start: .25rem;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.3;
}

.quote-status:empty {
  margin: 0;
}

@media (max-width: 1160px) {
  .navextra .quote-trigger-label {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    clip-path: inset(50%);
  }
}

@media (max-width: 620px) {
  .navextra .quote-trigger {
    min-block-size: 34px;
    padding: .38rem .42rem;
    gap: .28rem;
  }
  .navextra .quote-badge {
    min-inline-size: 16px;
    min-block-size: 16px;
    font-size: .66rem;
  }
  .quote-item {
    grid-template-columns: 59px minmax(0, 1fr);
  }
}

@media print {
  body:has(.quote-drawer[open]) > :not(.quote-drawer) {
    display: none !important;
  }
  .quote-drawer[open] {
    position: static;
    display: block;
    inline-size: 100%;
    block-size: auto;
    overflow: visible;
    background: #fff;
  }
  .quote-drawer::backdrop, .quote-drawer :is(.quote-close, .quote-footer, .quote-item-remove, .quote-quantity button, .quote-item-note input, input.quote-item-note, textarea) {
    display: none !important;
  }
  .quote-heading {
    padding: 0 0 .55rem;
    border-block-end: 1px solid #9caaa0;
    background: #fff;
    color: #132a22;
  }
  .quote-heading p {
    color: #283d34;
  }
  .quote-scroll {
    overflow: visible;
    padding: .7rem 0 0;
  }
  .quote-item {
    break-inside: avoid;
  }
  .quote-quantity, .quote-quantity input {
    border: 0;
    min-block-size: auto;
  }
  .quote-note-print:not(:empty), .quote-item-note-print:not(:empty) {
    display: block;
    margin: .25rem 0 0;
    white-space: pre-wrap;
    font-size: .85rem;
    font-weight: 400;
  }
  .quote-item-note-print {
    grid-column: 2;
    overflow-wrap: anywhere;
  }
  .quote-notes:has(.quote-note-print:empty) {
    display: none;
  }
}
