.lm-cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lm-cart-modal.is-visible {
  opacity: 1;
  visibility: visible;
}
.lm-cart-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 58, 47, 0.45);
  backdrop-filter: blur(3px);
}
.lm-cart-dialog {
  position: relative;
  z-index: 2;
  background: #FDFBF7;
  color: #2E3A2F;
  border: 1px solid #D1D5D2;
  border-radius: 12px;
  width: 95%;
  max-width: 1050px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 36px rgba(46, 58, 47, 0.16);
  overflow: hidden;
}
.lm-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #D1D5D2;
  background: #F5F2EE;
  flex-shrink: 0;
}
.lm-cart-header-title {
  font-weight: 700;
  color: #2E3A2F;
}
.lm-counter-label {
  font-weight: normal;
  color: #5C6B5E;
  font-size: 0.95em;
}
.lm-close-btn {
  background: transparent;
  border: none;
  color: #5C6B5E;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.lm-close-btn:hover {
  color: #2E3A2F;
  background: rgba(0,0,0,0.05);
}
.lm-cart-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.lm-cart-items-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lm-cart-item-card {
  background: #FFFFFF;
  border: 1px solid #D1D5D2;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-item-thumb-box {
  width: 100%;
  height: 140px;
  background: #F5F2EE;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lm-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lm-item-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lm-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #2E3A2F;
}
.lm-item-meta {
  font-size: 0.85rem;
  color: #5C6B5E;
}
.lm-item-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.lm-qty-pill {
  display: inline-flex;
  align-items: center;
  background: #F5F2EE;
  border: 1px solid #D1D5D2;
  border-radius: 20px;
  padding: 2px 6px;
}
.lm-qty-btn {
  background: transparent;
  border: none;
  color: #2E3A2F;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.lm-qty-val {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
  color: #2E3A2F;
  font-weight: 600;
}
.lm-item-line-total {
  font-weight: 700;
  color: #2E3A2F;
  font-size: 0.9rem;
}
.lm-item-remove-btn {
  background: transparent;
  border: none;
  color: #8A9A8B;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.lm-item-remove-btn:hover {
  color: #d9534f;
}
.lm-summary-card {
  background: #F5F2EE;
  border: 1px solid #D1D5D2;
  border-radius: 8px;
  padding: 16px;
}
.lm-summary-heading {
  font-weight: 700;
  color: #2E3A2F;
}
.lm-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #5C6B5E;
  margin-bottom: 3px;
  display: block;
}
.lm-input {
  background: #FFFFFF;
  border: 1px solid #D1D5D2;
  color: #2E3A2F;
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 6px 10px;
}
.lm-input:focus {
  border-color: #8A9A8B;
  outline: none;
  box-shadow: 0 0 0 2px rgba(138, 154, 139, 0.25);
}
.lm-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #D1D5D2;
  padding: 8px 12px;
  border-radius: 6px;
}
.lm-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #2E3A2F;
  cursor: pointer;
  margin: 0;
}
.lm-totals-breakdown {
  font-size: 0.9rem;
  color: #5C6B5E;
  border-top: 1px dashed #D1D5D2;
  padding-top: 10px;
}
.lm-total-highlight {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2E3A2F;
}
.lm-consent-label {
  font-size: 0.8rem;
  color: #5C6B5E;
}
.lm-btn-action {
  background-color: #2E3A2F;
  color: #FDFBF7;
  border: 1px solid #2E3A2F;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.lm-btn-action:hover {
  background-color: #4A5D4E;
  color: #FFFFFF;
  border-color: #4A5D4E;
}
.lm-btn-secondary {
  background: transparent;
  color: #2E3A2F;
  border: 1px solid #D1D5D2;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.lm-btn-secondary:hover {
  background: #F5F2EE;
  color: #2E3A2F;
}
.lm-error-box {
  background: #fde8e8;
  color: #c81e1e;
  border: 1px solid #f8b4b4;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
}
.lm-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.lm-toast {
  background: #FDFBF7;
  border: 1px solid #D1D5D2;
  border-left: 4px solid #8A9A8B;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 4px 14px rgba(46, 58, 47, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: auto;
}
.lm-toast.lm-toast-show {
  transform: translateX(0);
  opacity: 1;
}
.lm-toast-img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F5F2EE;
}
.lm-toast-content {
  flex: 1 1 auto;
  overflow: hidden;
}
.lm-toast-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2E3A2F;
}
.lm-toast-msg {
  font-size: 0.78rem;
  color: #5C6B5E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .lm-cart-dialog {
    width: 96%;
    max-height: 94vh;
  }
  .lm-cart-body {
    padding: 12px;
  }
  .lm-cart-item-card {
    flex-direction: column;
  }
  .lm-item-thumb-box {
    height: 160px;
  }
}