.lm-quote-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0a4d8c;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px -12px rgba(10, 77, 140, 0.55);
  transition:
    transform 0.18s,
    background 0.18s;
}

.lm-quote-fab:hover {
  background: #003a70;
  transform: translateY(-2px);
}

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

.lm-quote-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 100px;
  background: #d64545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

@media (max-width: 640px) {
  .lm-quote-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
} /* ---------------------------------------------------------------------


   Quote drawer overlay
--------------------------------------------------------------------- */

.lm-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(3, 42, 82, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.lm-quote-overlay:not([hidden]) {
  opacity: 1;
}

/* ---------------------------------------------------------------------
   Slide-out drawer
--------------------------------------------------------------------- */

.lm-quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(420px, 100vw);
  background: #fff;
  box-shadow: -20px 0 60px -20px rgba(3, 42, 82, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.lm-quote-drawer.is-open {
  transform: translateX(0);
}

.lm-quote-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
}

.lm-quote-drawer__header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #15212e;
}

.lm-quote-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f7fa;
  border: none;
  cursor: pointer;
  color: #5b7185;
  font-size: 16px;
}

.lm-quote-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.lm-quote-drawer__empty {
  text-align: center;
  padding: 60px 20px;
  color: #8aa0b3;
  font-size: 14px;
}

.lm-quote-drawer__footer {
  flex-shrink: 0;
  border-top: 1px solid #eef2f6;
  padding: 18px 24px 22px;
}

.lm-quote-drawer__count {
  font-size: 13.5px;
  color: #5b7185;
  margin-bottom: 12px;
}

.lm-quote-drawer__contact-btn {
  width: 100%;
  background: #0a4d8c;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.18s;
}

.lm-quote-drawer__contact-btn:hover {
  background: #003a70;
}

/* ---------------------------------------------------------------------
   Quote item row
--------------------------------------------------------------------- */

.lm-quote-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid #f4f7fa;
}

.lm-quote-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #e3edf6;
  flex-shrink: 0;
}

.lm-quote-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lm-quote-item__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lm-quote-item__name {
  font-size: 13.5px;
  font-weight: 600;
  color: #15212e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-quote-item__sku {
  font-size: 11.5px;
  color: #8aa0b3;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

.lm-quote-item__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  padding: 2px;
}

.lm-quote-item__qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #3a4d5e;
  font-size: 14px;
  border-radius: 6px;
}

.lm-quote-item__qty-btn:hover {
  background: #f4f7fa;
}

.lm-quote-item__qty-value {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #15212e;
}

.lm-quote-item__remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #b0bcc8;
  font-size: 13px;
  border-radius: 7px;
  transition:
    background 0.13s,
    color 0.13s;
}

.lm-quote-item__remove:hover {
  background: #fbeaea;
  color: #d64545;
}

/* ---------------------------------------------------------------------
   Contact-about-quote modal
--------------------------------------------------------------------- */

.lm-quote-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(3, 42, 82, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vh, 64px) 18px;
  overflow-y: auto;
}

.lm-quote-contact-overlay[hidden] {
  display: none;
}

.lm-quote-contact-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 50px 100px -40px rgba(3, 42, 82, 0.6);
  padding: clamp(28px, 3vw, 38px);
  position: relative;
  animation: lmDrawer 0.22s ease;
  max-height: calc(100svh - 180px);
  overflow: scroll;
}

.lm-quote-contact-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f4f7fa;
  border: none;
  cursor: pointer;
  color: #5b7185;
  font-size: 16px;
}

.lm-quote-contact-modal h2 {
  margin: 0 34px 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #15212e;
}

.lm-quote-contact-modal__subtext {
  margin: 0 0 20px;
  font-size: 14px;
  color: #8aa0b3;
  font-weight: 300;
}

.lm-quote-contact-modal__products {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 22px;
  max-height: 160px;
  overflow-y: auto;
}

.lm-quote-contact-modal__product {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #3a4d5e;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f7fa;
}

.lm-quote-contact-modal__product + .lm-quote-contact-modal__product {
  border-top: 1px solid #e5ebf1;
}

.lm-quote-contact-modal .form-row {
  text-align: left;
  margin-bottom: 14px;
}

.lm-quote-contact-modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3a4d5e;
  margin-bottom: 6px;
}

.lm-quote-contact-modal input,
.lm-quote-contact-modal textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8e2ec;
  border-radius: 10px;
  font-size: 14px;
  color: #15212e;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.lm-quote-contact-modal input:focus,
.lm-quote-contact-modal textarea:focus {
  border-color: #0a4d8c;
}

.lm-quote-contact-modal textarea {
  resize: vertical;
}

.lm-quote-contact-modal__submit {
  width: 100%;
  background: #0a4d8c;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px;
  border-radius: 11px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.18s;
}

.lm-quote-contact-modal__submit:hover {
  background: #003a70;
}

.lm-quote-contact-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lm-quote-contact-modal__status {
  margin: 14px 0 0;
  font-size: 13.5px;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
}

.lm-quote-contact-modal__status.is-success {
  background: #eaf7ee;
  color: #2e9e5b;
}

.lm-quote-contact-modal__status.is-error {
  background: #fbeaea;
  color: #d64545;
}

/* ---------------------------------------------------------------------
   Nav badge (item count)
--------------------------------------------------------------------- */

.lm-quote-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: #d64545;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
