/* LMS Purchase Card Widget — compact */
.lms-purchase-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 360px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.lpc-loading,
.lpc-error {
  text-align: center;
  padding: 28px 16px;
  color: #6b7280;
  font-size: 13px;
}

.lpc-error {
  color: #dc2626;
}

/* Orange Header */
.lpc-header {
  background: #E67212;
  padding: 10px 16px;
  text-align: center;
}

.lpc-header-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

/* Price Display */
.lpc-price-display {
  text-align: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.lpc-price-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lpc-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.lpc-price-original {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.lpc-price-original::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  background: #1a1a2e;
}

.lpc-price-current {
  font-size: 28px;
  font-weight: 700;
  color: #E67212;
}

.lpc-price-currency {
  font-size: 16px;
  font-weight: 600;
}

/* Card Body */
.lpc-body {
  padding: 14px 16px 16px;
}

/* Quantity */
.lpc-quantity {
  margin-bottom: 12px;
}

.lpc-quantity label {
  display: block;
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
  margin-bottom: 6px;
  text-align: center;
}

.lpc-qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lpc-qty-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid #E67212;
  background: white;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #E67212;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}

.lpc-qty-btn:hover {
  background: #E67212;
  color: white;
}

.lpc-qty-btn:active {
  transform: scale(0.96);
}

.lpc-qty-display {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  min-width: 32px;
  text-align: center;
}

/* ID06 */
.lpc-id06 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #faf5ef;
  border-radius: 4px;
  border: 1px solid #f0dcc5;
  margin-bottom: 12px;
}

.lpc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #1f2937;
  cursor: pointer;
  margin: 0;
}

.lpc-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #E67212;
}

.lpc-id06-price {
  font-size: 12.5px;
  color: #E67212;
  font-weight: 600;
}

/* Total */
.lpc-total {
  text-align: center;
  padding: 8px 0 10px;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

.lpc-total-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lpc-total-value {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

/* Action Buttons */
.lpc-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.lpc-checkout-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: #E67212;
  color: white !important;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s;
  box-sizing: border-box;
  letter-spacing: 0.2px;
}

.lpc-checkout-btn:hover {
  background: #c96110;
  color: white !important;
}

.lpc-checkout-btn:active {
  transform: scale(0.98);
}

/* Add to cart — text link */
.lpc-cart-btn {
  display: inline-block;
  background: none !important;
  border: none !important;
  color: #6b7280 !important;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0 2px;
  font-family: inherit;
  text-decoration: underline;
  transition: color 0.2s;
  outline: none !important;
  box-shadow: none !important;
}

.lpc-cart-btn:hover,
.lpc-cart-btn:focus,
.lpc-cart-btn:active {
  color: #E67212 !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.lpc-cart-btn-added {
  color: #166534 !important;
  text-decoration: none;
  cursor: default;
}

/* Bulk inquiry — compact but complete */
.lpc-bulk {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.lpc-bulk-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 3px;
}

.lpc-bulk-text {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 8px;
}

.lpc-bulk-btn {
  display: inline-block;
  padding: 6px 14px;
  background: transparent;
  color: #E67212 !important;
  border: 1.5px solid #E67212;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.lpc-bulk-btn:hover {
  background: #E67212;
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
  .lms-purchase-card {
    max-width: 100%;
  }

  .lpc-price-original {
    font-size: 18px;
  }

  .lpc-price-current {
    font-size: 24px;
  }

  .lpc-total-value {
    font-size: 20px;
  }

  .lpc-header-title {
    font-size: 14px;
  }
}
